ohctechv3/.svn/pristine/8f/8f6f929a4a5de8fad09f8e19cfcc1ec78b0d6663.svn-base

24 lines
524 B
Plaintext
Raw Permalink Normal View History

2024-10-28 15:03:36 +05:30
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