Urara-Blog/node_modules/.pnpm-store/v3/files/1e/eee9e47f76a65d2ea39c53b71ea38538a70091bc47ca3775556e84bafcb6b3b51b65e487010993a822726d8ec171964d83149f6e2e482c48654b556e2b17fb
2022-08-14 01:14:53 +08:00

16 lines
476 B
Text

'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;
};