OSDN Git Service

Modify the font-size proplem
authordhrname <dhrname@users.sourceforge.jp>
Thu, 16 Mar 2017 13:56:52 +0000 (22:56 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Thu, 16 Mar 2017 13:56:52 +0000 (22:56 +0900)
org/w3c/dom/smil.js

index a5c639a..a934516 100644 (file)
@@ -1471,6 +1471,10 @@ base("$calcMode").up("$attribute").mix( {
       this._ele = ele;\r
       this.to = this.getAttr("to", "");\r
       this.fill = this.getAttr("fill", "remove");\r
+      if ( (this.getAttr("attributeName", "") === "font-size") \r
+          && /\d\s*$/.test(this.to) ) {\r
+        this.to += "px";\r
+      }\r
     }\r
     var thisele = this.element;\r
     if (line && thisele) {\r