summaryrefslogblamecommitdiff
path: root/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
blob: 25dc4dbe42d4c6e07a55a9c8e059ecf64911ac6b (plain) (tree)






















                                                                            
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