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