wishthis/node_modules/autoprefixer/lib/hacks/text-decoration.js

26 lines
430 B
JavaScript
Raw Normal View History

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