summaryrefslogtreecommitdiff
path: root/node_modules/clean-css/lib/optimizer/configuration/properties
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/clean-css/lib/optimizer/configuration/properties')
-rw-r--r--node_modules/clean-css/lib/optimizer/configuration/properties/understandable.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/clean-css/lib/optimizer/configuration/properties/understandable.js b/node_modules/clean-css/lib/optimizer/configuration/properties/understandable.js
new file mode 100644
index 00000000..60f34293
--- /dev/null
+++ b/node_modules/clean-css/lib/optimizer/configuration/properties/understandable.js
@@ -0,0 +1,15 @@
+var sameVendorPrefixes = require('../../vendor-prefixes').same;
+
+function understandable(validator, value1, value2, _position, isPaired) {
+ if (!sameVendorPrefixes(value1, value2)) {
+ return false;
+ }
+
+ if (isPaired && validator.isVariable(value1) !== validator.isVariable(value2)) {
+ return false;
+ }
+
+ return true;
+}
+
+module.exports = understandable;