You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
331 B
10 lines
331 B
|
2 years ago
|
// 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)
|
||
|
|
);
|
||
|
|
};
|