loulijun2021
2024-04-08 429e9bb5915dd90978374cbd8574a9dc5fa464d7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
let Declaration = require('../declaration')
 
class TextDecorationSkipInk extends Declaration {
  /**
   * Change prefix for ink value
   */
  set(decl, prefix) {
    if (decl.prop === 'text-decoration-skip-ink' && decl.value === 'auto') {
      decl.prop = prefix + 'text-decoration-skip'
      decl.value = 'ink'
      return decl
    } else {
      return super.set(decl, prefix)
    }
  }
}
 
TextDecorationSkipInk.names = [
  'text-decoration-skip-ink',
  'text-decoration-skip'
]
 
module.exports = TextDecorationSkipInk