source: frontend/node_modules/cssstyle/lib/properties/lineHeight.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 602 bytes
Line 
1'use strict';
2
3var TYPES = require('../parsers').TYPES;
4var valueType = require('../parsers').valueType;
5
6module.exports.isValid = function isValid(v) {
7 var type = valueType(v);
8 return (
9 (type === TYPES.KEYWORD && v.toLowerCase() === 'normal') ||
10 v.toLowerCase() === 'inherit' ||
11 type === TYPES.NUMBER ||
12 type === TYPES.LENGTH ||
13 type === TYPES.PERCENT
14 );
15};
16
17module.exports.definition = {
18 set: function(v) {
19 this._setProperty('line-height', v);
20 },
21 get: function() {
22 return this.getPropertyValue('line-height');
23 },
24 enumerable: true,
25 configurable: true,
26};
Note: See TracBrowser for help on using the repository browser.