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

Version Path
learn_create-0.0.22 lib/templates/javascript_lab_template/node_modules/cssstyle/lib/properties/background.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/cssstyle/lib/properties/background.js
locomotivecms-3.4.0 app/javascript/node_modules/cssstyle/lib/properties/background.js
locomotivecms-3.4.0 app/javascript/node_modules/jest-environment-jsdom/node_modules/cssstyle/lib/properties/background.js
lanes-0.8.0 node_modules/cssstyle/lib/properties/background.js
select_all-rails-0.3.1 node_modules/cssstyle/lib/properties/background.js