|
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
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var TYPES = require('../parsers').TYPES;
|
|---|
| 4 | var valueType = require('../parsers').valueType;
|
|---|
| 5 |
|
|---|
| 6 | module.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 |
|
|---|
| 17 | module.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.