mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-18 20:15:38 +00:00
10 lines
297 B
JavaScript
10 lines
297 B
JavaScript
import { isValueFunction } from './typeGuards.mjs';
|
|
|
|
/**
|
|
* @param {import('postcss-value-parser').Node} node
|
|
* @returns {node is import('postcss-value-parser').FunctionNode}
|
|
*/
|
|
export default function isUrlFunction(node) {
|
|
return isValueFunction(node) && node.value.toLowerCase() === 'url';
|
|
}
|