NET-Web-API-w-Angular/my-app/node_modules/autoprefixer/lib/hacks/image-set.js

19 lines
395 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
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