Sha256: c311bb59eb5e825f73b4489ca4f014696d0d81ddc1af81f8b26dced86f2939df

Contents?: true

Size: 522 Bytes

Versions: 6

Compression:

Stored size: 522 Bytes

Contents

'use strict';

var parseMeasurement = require('../parsers').parseMeasurement;

function parse(v) {
    if (String(v).toLowerCase() === 'auto') {
        return 'auto';
    }
    if (String(v).toLowerCase() === 'inherit') {
        return 'inherit';
    }
    return parseMeasurement(v);
}

module.exports.definition = {
    set: function (v) {
        this._setProperty('width', parse(v));
    },
    get: function () {
        return this.getPropertyValue('width');
    },
    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/width.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/cssstyle/lib/properties/width.js
locomotivecms-3.4.0 app/javascript/node_modules/cssstyle/lib/properties/width.js
locomotivecms-3.4.0 app/javascript/node_modules/jest-environment-jsdom/node_modules/cssstyle/lib/properties/width.js
lanes-0.8.0 node_modules/cssstyle/lib/properties/width.js
select_all-rails-0.3.1 node_modules/cssstyle/lib/properties/width.js