Sha256: 97fd849c27c6f5de4fe643e7df7b21c7bae0c2ec0c83a332dedccd56ccaae1b4

Contents?: true

Size: 613 Bytes

Versions: 6

Compression:

Stored size: 613 Bytes

Contents

'use strict';

var TYPES = require('../parsers').TYPES;
var valueType = require('../parsers').valueType;

module.exports.isValid = function isValid(v) {
    var type = valueType(v);
    return (type === TYPES.KEYWORD && (v.toLowerCase() === 'normal') || (v.toLowerCase() === 'inherit')) ||
        type === TYPES.NUMBER || type === TYPES.LENGTH || type === TYPES.PERCENT;
};

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