Files
Monkey-Test/WebDriverAgent/Inspector/node_modules/postcss-merge-longhand/dist/lib/canMerge.js
T
2019-01-25 17:01:52 +08:00

27 lines
663 B
JavaScript

'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
var important = function important(node) {
return node.important;
};
var unimportant = function unimportant(node) {
return !node.important;
};
var hasInherit = function hasInherit(node) {
return ~node.value.indexOf('inherit');
};
exports['default'] = function () {
for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
props[_key] = arguments[_key];
}
if (props.some(hasInherit)) {
return false;
}
return props.every(important) || props.every(unimportant);
};
module.exports = exports['default'];