Sha256: 4820cebc649581173467f43255bb16186c66f6a52a9c4bde68cbf9a552ef00d1

Contents?: true

Size: 497 Bytes

Versions: 6

Compression:

Stored size: 497 Bytes

Contents

'use strict';

var valid_weights = ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'inherit'];

module.exports.isValid = function isValid(v) {
    return valid_weights.indexOf(v.toLowerCase()) !== -1;
};

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