Sha256: 15a049b302e63c298b61dcfeac7a0d65d0b8d69f9303204bc105c395ffb3d13f
Contents?: true
Size: 811 Bytes
Versions: 6
Compression:
Stored size: 811 Bytes
Contents
'use strict'; var shorthandParser = require('../parsers').shorthandParser; var shorthandSetter = require('../parsers').shorthandSetter; var shorthandGetter = require('../parsers').shorthandGetter; var shorthand_for = { 'background-color': require('./backgroundColor'), 'background-image': require('./backgroundImage'), 'background-repeat': require('./backgroundRepeat'), 'background-attachment': require('./backgroundAttachment'), 'background-position': require('./backgroundPosition') }; module.exports.isValid = function isValid(v) { return shorthandParser(v, shorthand_for) !== undefined; }; module.exports.definition = { set: shorthandSetter('background', shorthand_for), get: shorthandGetter('background', shorthand_for), enumerable: true, configurable: true };
Version data entries
6 entries across 5 versions & 4 rubygems