frontend/.pnpm-store/v3/files/a3/2d21099e6bbde3b103ba2a49cbc727c0b53cb3f722060c78f2885c4495debd9ec032a0a2c2267214c0fbe04420aa7337a2101c42bbb232da6f0e13e2e79d6c

26 lines
431 B
Plaintext

let Declaration = require('../declaration')
const BASIC = [
'none',
'underline',
'overline',
'line-through',
'blink',
'inherit',
'initial',
'unset'
]
class TextDecoration extends Declaration {
/**
* Do not add prefixes for basic values.
*/
check (decl) {
return decl.value.split(/\s+/).some(i => !BASIC.includes(i))
}
}
TextDecoration.names = ['text-decoration']
module.exports = TextDecoration