10 lines
331 B
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
// Check whether a property is a CSS property
const isCustomProperty = require('./isCustomProperty');
const isStandardSyntaxProperty = require('./isStandardSyntaxProperty');
module.exports = function isProperty(node) {
return (
node.type === 'decl' && isStandardSyntaxProperty(node.prop) && !isCustomProperty(node.prop)
);
};