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