Urara-Blog/node_modules/.pnpm-store/v3/files/6a/0badbdfb7043ecd95d43f5f40c95462744e2e6cf2ccaea6002e35eb8e053a38931fd3767ffe11d7d3360cc3bdc36c5d52de1d61f7e56b608c20abdb2349659
2022-08-14 01:14:53 +08:00

23 lines
524 B
Text

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