Urara-Blog/node_modules/.pnpm-store/v3/files/b7/36301f401d8cb9774caefd92c5088cdc9edec53777102714dbb5f71635a0b9fbeab5c22e69eeb0985792585c13013419b937fd7b20b92d4f0b2c521a347625
2022-08-14 01:14:53 +08:00

24 lines
504 B
Text

let Declaration = require('../declaration')
let utils = require('../utils')
class BackgroundClip extends Declaration {
constructor(name, prefixes, all) {
super(name, prefixes, all)
if (this.prefixes) {
this.prefixes = utils.uniq(
this.prefixes.map(i => {
return i === '-ms-' ? '-webkit-' : i
})
)
}
}
check(decl) {
return decl.value.toLowerCase() === 'text'
}
}
BackgroundClip.names = ['background-clip']
module.exports = BackgroundClip