summaryrefslogtreecommitdiff
path: root/node_modules/autoprefixer/lib/hacks/mask-border.js
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2025-11-24 20:54:57 +0100
committerPhilipp Tanlak <philipp.tanlak@gmail.com>2025-11-24 20:57:48 +0100
commitb1e2c8fd5cb5dfa46bc440a12eafaf56cd844b1c (patch)
tree49d360fd6cbc6a2754efe93524ac47ff0fbe0f7d /node_modules/autoprefixer/lib/hacks/mask-border.js
Docs
Diffstat (limited to 'node_modules/autoprefixer/lib/hacks/mask-border.js')
-rw-r--r--node_modules/autoprefixer/lib/hacks/mask-border.js38
1 files changed, 38 insertions, 0 deletions
diff --git a/node_modules/autoprefixer/lib/hacks/mask-border.js b/node_modules/autoprefixer/lib/hacks/mask-border.js
new file mode 100644
index 0000000..d5efde2
--- /dev/null
+++ b/node_modules/autoprefixer/lib/hacks/mask-border.js
@@ -0,0 +1,38 @@
+let Declaration = require('../declaration')
+
+class MaskBorder extends Declaration {
+ /**
+ * Return property name by final spec
+ */
+ normalize() {
+ return this.name.replace('box-image', 'border')
+ }
+
+ /**
+ * Return flex property for 2012 spec
+ */
+ prefixed(prop, prefix) {
+ let result = super.prefixed(prop, prefix)
+ if (prefix === '-webkit-') {
+ result = result.replace('border', 'box-image')
+ }
+ return result
+ }
+}
+
+MaskBorder.names = [
+ 'mask-border',
+ 'mask-border-source',
+ 'mask-border-slice',
+ 'mask-border-width',
+ 'mask-border-outset',
+ 'mask-border-repeat',
+ 'mask-box-image',
+ 'mask-box-image-source',
+ 'mask-box-image-slice',
+ 'mask-box-image-width',
+ 'mask-box-image-outset',
+ 'mask-box-image-repeat'
+]
+
+module.exports = MaskBorder