source: trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/canExplode.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 672 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8var _isCustomProp = _interopRequireDefault(require("./isCustomProp"));
9
10function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
12const hasGlobalKeyword = prop => prop && prop.value && ['inherit', 'initial', 'unset', 'revert'].includes(prop.value.toLowerCase());
13
14var _default = (prop, includeCustomProps = true) => {
15 if (!prop.value || includeCustomProps && (0, _isCustomProp.default)(prop) || hasGlobalKeyword(prop)) {
16 return false;
17 }
18
19 return true;
20};
21
22exports.default = _default;
23module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.