Download web/node_modules/autoprefixer/lib/hacks/pixelated.js from Amitkumar001/Law_Slm: direct link, hf CLI and curl.
- Browser
- Download file 819 Bytes
-
https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/autoprefixer/lib/hacks/pixelated.js
- Command line
-
hf download hf://Amitkumar001/Law_Slm/web/node_modules/autoprefixer/lib/hacks/pixelated.js
-
curl -L -o pixelated.js https://huggingface.co/Amitkumar001/Law_Slm/resolve/main/web/node_modules/autoprefixer/lib/hacks/pixelated.js
819 Bytes
| let OldValue = require('../old-value') | |
| let Value = require('../value') | |
| class Pixelated extends Value { | |
| /** | |
| * Different name for WebKit and Firefox | |
| */ | |
| old(prefix) { | |
| if (prefix === '-webkit-') { | |
| return new OldValue(this.name, '-webkit-optimize-contrast') | |
| } | |
| if (prefix === '-moz-') { | |
| return new OldValue(this.name, '-moz-crisp-edges') | |
| } | |
| return super.old(prefix) | |
| } | |
| /** | |
| * Use non-standard name for WebKit and Firefox | |
| */ | |
| replace(string, prefix) { | |
| if (prefix === '-webkit-') { | |
| return string.replace(this.regexp(), '$1-webkit-optimize-contrast') | |
| } | |
| if (prefix === '-moz-') { | |
| return string.replace(this.regexp(), '$1-moz-crisp-edges') | |
| } | |
| return super.replace(string, prefix) | |
| } | |
| } | |
| Pixelated.names = ['pixelated'] | |
| module.exports = Pixelated | |