| 1 | let Declaration = require('../declaration') |
| 2 | |
| 3 | class 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 | |
| 18 | TextDecorationSkipInk.names = [ |
| 19 | 'text-decoration-skip-ink', |
| 20 | 'text-decoration-skip' |
| 21 | ] |
| 22 | |
| 23 | module.exports = TextDecorationSkipInk |