UNPKG

postcss-css-variables

Version:

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation

12 lines (8 loc) 409 B
var isUnderScope = require('./is-under-scope'); var generateScopeList = require('./generate-scope-list'); var isNodeUnderScope = function(node, scopeNode, /*optional*/ignorePseudo) { var nodeScopeList = generateScopeList(node, true); var scopeNodeScopeList = generateScopeList(scopeNode, true); return isUnderScope(nodeScopeList, scopeNodeScopeList, ignorePseudo); }; module.exports = isNodeUnderScope;