From c28059e39b7d6f19e0571d6e501d5000876802dd Mon Sep 17 00:00:00 2001 From: Sverre Johansen Date: Tue, 24 Mar 2015 17:52:02 +0000 Subject: [PATCH 1/2] Don't add 'px' to strokeDashoffset CSS Properties This is a SVG CSS Property. The standard expects values or percentages, and adding "px" to the value will break it. http://www.w3.org/TR/SVG/painting.html#StrokeDashoffsetProperty --- src/browser/ui/dom/CSSProperty.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/browser/ui/dom/CSSProperty.js b/src/browser/ui/dom/CSSProperty.js index 05f764ba95c..10f8b458dff 100644 --- a/src/browser/ui/dom/CSSProperty.js +++ b/src/browser/ui/dom/CSSProperty.js @@ -34,7 +34,8 @@ var isUnitlessNumber = { // SVG-related properties fillOpacity: true, strokeOpacity: true, - strokeWidth: true + strokeWidth: true, + strokeDashoffset: true }; /** From 77abea5ddc971444ac614c0450cf3c2ec23ee4d9 Mon Sep 17 00:00:00 2001 From: Sverre Johansen Date: Tue, 24 Mar 2015 20:43:55 +0000 Subject: [PATCH 2/2] Reordered properties to maintain ABC order --- src/browser/ui/dom/CSSProperty.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser/ui/dom/CSSProperty.js b/src/browser/ui/dom/CSSProperty.js index 10f8b458dff..93b5468438b 100644 --- a/src/browser/ui/dom/CSSProperty.js +++ b/src/browser/ui/dom/CSSProperty.js @@ -33,9 +33,9 @@ var isUnitlessNumber = { // SVG-related properties fillOpacity: true, + strokeDashoffset: true, strokeOpacity: true, - strokeWidth: true, - strokeDashoffset: true + strokeWidth: true }; /**