postcss-css-variables
Version:
PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
13 lines (10 loc) • 297 B
JavaScript
var alwaysAncestorSelector = {
'*': true,
':root': true,
'html': true
};
// This means it will be always be an ancestor of any other selector
var isPieceIsAlwaysAncestorSelector = function(piece) {
return !!alwaysAncestorSelector[piece];
};
module.exports = isPieceIsAlwaysAncestorSelector;