mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 20:30:04 +02:00
update node modules
This commit is contained in:
27
node_modules/cssstyle/lib/properties/lineHeight.js
generated
vendored
27
node_modules/cssstyle/lib/properties/lineHeight.js
generated
vendored
@@ -4,18 +4,23 @@ 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;
|
||||
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
|
||||
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