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
Sverre Johansen committed
Mar 24, 2015 at 17:52 UTC
c28059e39b7d6f19e0571d6e501d5000876802dd
1 file changed
+2
-1
src/browser/ui/dom/CSSProperty.js
+2
-1
@@ -34,7 +34,8 @@ var isUnitlessNumber = {
34
// SVG-related properties
35
fillOpacity: true,
36
strokeOpacity: true,
37
- strokeWidth: true
37
+ strokeWidth: true,
38
+ strokeDashoffset: true
39
};
40
41
/**