summaryrefslogtreecommitdiff
path: root/node_modules/autoprefixer/lib/hacks/text-decoration.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/autoprefixer/lib/hacks/text-decoration.js')
-rw-r--r--node_modules/autoprefixer/lib/hacks/text-decoration.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/node_modules/autoprefixer/lib/hacks/text-decoration.js b/node_modules/autoprefixer/lib/hacks/text-decoration.js
new file mode 100644
index 0000000..148d98a
--- /dev/null
+++ b/node_modules/autoprefixer/lib/hacks/text-decoration.js
@@ -0,0 +1,25 @@
+let Declaration = require('../declaration')
+
+const BASIC = [
+ 'none',
+ 'underline',
+ 'overline',
+ 'line-through',
+ 'blink',
+ 'inherit',
+ 'initial',
+ 'unset'
+]
+
+class TextDecoration extends Declaration {
+ /**
+ * Do not add prefixes for basic values.
+ */
+ check(decl) {
+ return decl.value.split(/\s+/).some(i => !BASIC.includes(i))
+ }
+}
+
+TextDecoration.names = ['text-decoration']
+
+module.exports = TextDecoration