Debian Codegraph @

autoprefixer/lib/hacks/backdrop-filter.js

raw symbols SCIP
1 let Declaration = require('../declaration')
2 let utils = require('../utils')
3
4 class BackdropFilter 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 return i === '-ms-' ? '-webkit-' : i
12 })
13 )
14 }
15 }
16 }
17
18 BackdropFilter.names = ['backdrop-filter']
19
20 module.exports = BackdropFilter