source: node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js@ 2058e5c

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

Working / before login

  • Property mode set to 100644
File size: 524 bytes
Line 
1let Declaration = require('../declaration')
2
3class TextDecorationSkipInk extends Declaration {
4 /**
5 * Change prefix for ink value
6 */
7 set(decl, prefix) {
8 if (decl.prop === 'text-decoration-skip-ink' && decl.value === 'auto') {
9 decl.prop = prefix + 'text-decoration-skip'
10 decl.value = 'ink'
11 return decl
12 } else {
13 return super.set(decl, prefix)
14 }
15 }
16}
17
18TextDecorationSkipInk.names = [
19 'text-decoration-skip-ink',
20 'text-decoration-skip'
21]
22
23module.exports = TextDecorationSkipInk
Note: See TracBrowser for help on using the repository browser.