first commit
This commit is contained in:
11
node_modules/stylelint/lib/utils/isMathFunction.mjs
generated
vendored
Normal file
11
node_modules/stylelint/lib/utils/isMathFunction.mjs
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import { mathFunctions } from '../reference/functions.mjs';
|
||||
|
||||
/**
|
||||
* Check whether a node is math function
|
||||
*
|
||||
* @param {import('postcss-value-parser').Node} node postcss-value-parser node
|
||||
* @returns {boolean} If `true`, the node is math function
|
||||
*/
|
||||
export default function isMathFunction(node) {
|
||||
return node.type === 'function' && mathFunctions.has(node.value.toLowerCase());
|
||||
}
|
||||
Reference in New Issue
Block a user