From c28059e39b7d6f19e0571d6e501d5000876802dd Mon Sep 17 00:00:00 2001 From: Sverre Johansen Date: Tue, 24 Mar 2015 17:52:02 +0000 Subject: [PATCH] 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 05f764ba95..10f8b458df 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 }; /**