diff --git a/src/parser.js b/src/parser.js index 1689e7fa..3645cf8f 100644 --- a/src/parser.js +++ b/src/parser.js @@ -354,7 +354,9 @@ if (ruleMatchesElement) { for (var property in fabric.cssRules[rule]) { - styles[property] = fabric.cssRules[rule][property]; + var attr = normalizeAttr(property); + var value = normalizeValue(attr, fabric.cssRules[rule][property]); + styles[attr] = value; } } }