Sha256: cab91202011f04f1699e0dc8348ebf1962a112fa4ff0fb65eae73faa950b01e9
Contents?: true
Size: 597 Bytes
Versions: 6
Compression:
Stored size: 597 Bytes
Contents
'use strict'; 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 };
Version data entries
6 entries across 5 versions & 4 rubygems