mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
draft
This commit is contained in:
21
node_modules/cssstyle/lib/properties/lineHeight.js
generated
vendored
Normal file
21
node_modules/cssstyle/lib/properties/lineHeight.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'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
|
||||
};
|
Reference in New Issue
Block a user