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

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