frontend/.pnpm-store/v3/files/b2/058130241cf037d73a9dd0c2f7b1a399cdb4b130e526ea555f9c0a068aa4379dca4f0f3f464c9badbbc41483cacd0f631af51c822c8ddc7cd7dc9b858eb761

24 lines
525 B
Plaintext

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