Download web/client/node_modules/cssstyle/lib/properties/backgroundAttachment.js from amitesh11/pose: direct link, hf CLI and curl.
- Browser
- Download file 568 Bytes
-
https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/cssstyle/lib/properties/backgroundAttachment.js
- Command line
-
hf download hf://spaces/amitesh11/pose/web/client/node_modules/cssstyle/lib/properties/backgroundAttachment.js
-
curl -L -o backgroundAttachment.js https://huggingface.co/spaces/amitesh11/pose/resolve/main/web/client/node_modules/cssstyle/lib/properties/backgroundAttachment.js
568 Bytes
| ; | |
| var parsers = require('../parsers'); | |
| var isValid = (module.exports.isValid = function isValid(v) { | |
| return ( | |
| parsers.valueType(v) === parsers.TYPES.KEYWORD && | |
| (v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit') | |
| ); | |
| }); | |
| module.exports.definition = { | |
| set: function(v) { | |
| if (!isValid(v)) { | |
| return; | |
| } | |
| this._setProperty('background-attachment', v); | |
| }, | |
| get: function() { | |
| return this.getPropertyValue('background-attachment'); | |
| }, | |
| enumerable: true, | |
| configurable: true, | |
| }; | |