Urara-Blog/node_modules/.pnpm-store/v3/files/f7/3d6ab84319dfeb59117514573e525b56ac58c5bd2c2cafdf82b208819d214c57f77a709d31a0b78ac01652f0669fee63657896bfd402ef65cdf4a05ffe0d90
2022-08-14 01:14:53 +08:00

25 lines
430 B
Text

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