Files
GNX-mailEnterprise/frontend/node_modules/postcss-merge-longhand/src/lib/canExplode.js
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

17 lines
476 B
JavaScript

'use strict';
const isCustomProp = require('./isCustomProp');
const globalKeywords = new Set(['inherit', 'initial', 'unset', 'revert']);
/** @type {(prop: import('postcss').Declaration, includeCustomProps?: boolean) => boolean} */
module.exports = (prop, includeCustomProps = true) => {
if (
!prop.value ||
(includeCustomProps && isCustomProp(prop)) ||
(prop.value && globalKeywords.has(prop.value.toLowerCase()))
) {
return false;
}
return true;
};