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.
9 lines
331 B
9 lines
331 B
// 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) |
|
); |
|
};
|
|
|