isProperty.js 331 B

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