source: frontend/node_modules/postcss-merge-longhand/src/lib/canExplode.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 476 bytes
Line 
1'use strict';
2const isCustomProp = require('./isCustomProp');
3
4const globalKeywords = new Set(['inherit', 'initial', 'unset', 'revert']);
5
6/** @type {(prop: import('postcss').Declaration, includeCustomProps?: boolean) => boolean} */
7module.exports = (prop, includeCustomProps = true) => {
8 if (
9 !prop.value ||
10 (includeCustomProps && isCustomProp(prop)) ||
11 (prop.value && globalKeywords.has(prop.value.toLowerCase()))
12 ) {
13 return false;
14 }
15 return true;
16};
Note: See TracBrowser for help on using the repository browser.