source: node_modules/autoprefixer/lib/hacks/text-decoration.js@ 505f39a

Last change on this file since 505f39a was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Working / before login

  • Property mode set to 100644
File size: 430 bytes
Line 
1let Declaration = require('../declaration')
2
3const BASIC = [
4 'none',
5 'underline',
6 'overline',
7 'line-through',
8 'blink',
9 'inherit',
10 'initial',
11 'unset'
12]
13
14class TextDecoration extends Declaration {
15 /**
16 * Do not add prefixes for basic values.
17 */
18 check(decl) {
19 return decl.value.split(/\s+/).some(i => !BASIC.includes(i))
20 }
21}
22
23TextDecoration.names = ['text-decoration']
24
25module.exports = TextDecoration
Note: See TracBrowser for help on using the repository browser.