You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
463 B

3 months ago
  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