Spaces:
Configuration error
Configuration error
Download node_modules/autoprefixer/lib/hacks/autofill.js from CPISTO/TARSTHENEXT: direct link, hf CLI and curl.
- Browser
- Download file 531 Bytes
-
https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/autoprefixer/lib/hacks/autofill.js
- Command line
-
hf download hf://spaces/CPISTO/TARSTHENEXT/node_modules/autoprefixer/lib/hacks/autofill.js
-
curl -L -o autofill.js https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/autoprefixer/lib/hacks/autofill.js
531 Bytes
| let Selector = require('../selector') | |
| let utils = require('../utils') | |
| class Autofill extends Selector { | |
| constructor(name, prefixes, all) { | |
| super(name, prefixes, all) | |
| if (this.prefixes) { | |
| this.prefixes = utils.uniq(this.prefixes.map(() => '-webkit-')) | |
| } | |
| } | |
| /** | |
| * Return different selectors depend on prefix | |
| */ | |
| prefixed(prefix) { | |
| if (prefix === '-webkit-') { | |
| return ':-webkit-autofill' | |
| } | |
| return `:${prefix}autofill` | |
| } | |
| } | |
| Autofill.names = [':autofill'] | |
| module.exports = Autofill | |