source: node_modules/autoprefixer/lib/hacks/background-clip.js@ e4c61dd

Last change on this file since e4c61dd was 2058e5c, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Working / before login

  • Property mode set to 100644
File size: 504 bytes
Line 
1let Declaration = require('../declaration')
2let utils = require('../utils')
3
4class BackgroundClip 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 check(decl) {
18 return decl.value.toLowerCase() === 'text'
19 }
20}
21
22BackgroundClip.names = ['background-clip']
23
24module.exports = BackgroundClip
Note: See TracBrowser for help on using the repository browser.