summaryrefslogtreecommitdiff
path: root/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js')
-rw-r--r--node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js b/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
new file mode 100644
index 0000000..25dc4db
--- /dev/null
+++ b/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
@@ -0,0 +1,23 @@
+let Declaration = require('../declaration')
+
+class TextDecorationSkipInk extends Declaration {
+ /**
+ * Change prefix for ink value
+ */
+ set(decl, prefix) {
+ if (decl.prop === 'text-decoration-skip-ink' && decl.value === 'auto') {
+ decl.prop = prefix + 'text-decoration-skip'
+ decl.value = 'ink'
+ return decl
+ } else {
+ return super.set(decl, prefix)
+ }
+ }
+}
+
+TextDecorationSkipInk.names = [
+ 'text-decoration-skip-ink',
+ 'text-decoration-skip'
+]
+
+module.exports = TextDecorationSkipInk