first
This commit is contained in:
23
node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
generated
vendored
Normal file
23
node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
generated
vendored
Normal file
@ -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
|
Reference in New Issue
Block a user