|
@@ -304,7 +304,7 @@ this.fontPropertyParser = (() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function isSize(value) {
|
|
function isSize(value) {
|
|
|
- return /^[d.]/.test(value)
|
|
|
|
|
|
|
+ return !isNaN(parseFloat(value))
|
|
|
|| value.indexOf("/") !== -1
|
|
|| value.indexOf("/") !== -1
|
|
|
|| cssFontSizeKeywords.indexOf(value) !== -1;
|
|
|| cssFontSizeKeywords.indexOf(value) !== -1;
|
|
|
}
|
|
}
|