You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
524 B
24 lines
524 B
1 month ago
|
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
|