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.
19 lines
395 B
19 lines
395 B
let Value = require('../value')
|
|
|
|
class ImageSet extends Value {
|
|
/**
|
|
* Use non-standard name for WebKit and Firefox
|
|
*/
|
|
replace(string, prefix) {
|
|
let fixed = super.replace(string, prefix)
|
|
if (prefix === '-webkit-') {
|
|
fixed = fixed.replace(/("[^"]+"|'[^']+')(\s+\d+\w)/gi, 'url($1)$2')
|
|
}
|
|
return fixed
|
|
}
|
|
}
|
|
|
|
ImageSet.names = ['image-set']
|
|
|
|
module.exports = ImageSet
|