From 9c26193cdf8d79c964ef6f290e8285d1adad421b Mon Sep 17 00:00:00 2001 From: dhrname Date: Thu, 16 Mar 2017 22:56:52 +0900 Subject: [PATCH] Modify the font-size proplem --- org/w3c/dom/smil.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org/w3c/dom/smil.js b/org/w3c/dom/smil.js index a5c639a..a934516 100644 --- a/org/w3c/dom/smil.js +++ b/org/w3c/dom/smil.js @@ -1471,6 +1471,10 @@ base("$calcMode").up("$attribute").mix( { this._ele = ele; this.to = this.getAttr("to", ""); this.fill = this.getAttr("fill", "remove"); + if ( (this.getAttr("attributeName", "") === "font-size") + && /\d\s*$/.test(this.to) ) { + this.to += "px"; + } } var thisele = this.element; if (line && thisele) { -- 2.11.0