Debian Codegraph @

autoprefixer/lib/hacks/appearance.js

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