border-image.js 338 B

123456789101112131415
  1. let Declaration = require('../declaration')
  2. class BorderImage extends Declaration {
  3. /**
  4. * Remove fill parameter for prefixed declarations
  5. */
  6. set(decl, prefix) {
  7. decl.value = decl.value.replace(/\s+fill(\s)/, '$1')
  8. return super.set(decl, prefix)
  9. }
  10. }
  11. BorderImage.names = ['border-image']
  12. module.exports = BorderImage