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