appearance.js 463 B

1234567891011121314151617181920212223
  1. let Declaration = require('../declaration')
  2. let utils = require('../utils')
  3. class Appearance extends Declaration {
  4. constructor(name, prefixes, all) {
  5. super(name, prefixes, all)
  6. if (this.prefixes) {
  7. this.prefixes = utils.uniq(
  8. this.prefixes.map(i => {
  9. if (i === '-ms-') {
  10. return '-webkit-'
  11. }
  12. return i
  13. })
  14. )
  15. }
  16. }
  17. }
  18. Appearance.names = ['appearance']
  19. module.exports = Appearance