text-emphasis-position.js 357 B

1234567891011121314
  1. let Declaration = require('../declaration')
  2. class TextEmphasisPosition extends Declaration {
  3. set(decl, prefix) {
  4. if (prefix === '-webkit-') {
  5. decl.value = decl.value.replace(/\s*(right|left)\s*/i, '')
  6. }
  7. return super.set(decl, prefix)
  8. }
  9. }
  10. TextEmphasisPosition.names = ['text-emphasis-position']
  11. module.exports = TextEmphasisPosition