UNPKG

331 BJavaScriptView Raw
1// Check whether a property is a CSS property
2const isCustomProperty = require('./isCustomProperty');
3const isStandardSyntaxProperty = require('./isStandardSyntaxProperty');
4
5module.exports = function isProperty(node) {
6 return (
7 node.type === 'decl' && isStandardSyntaxProperty(node.prop) && !isCustomProperty(node.prop)
8 );
9};