Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index 7585069979cd44ac5b24505e779a7c5a2c8a170f..fdaa2a0713142596090dfe6f43e6b312c7c5d41c 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -8200,6 +8200,10 @@ bool CSSPropertyParser::parseSVGValue(CSSPropertyID propId, bool important) |
if (id == CSSValueLuminance || id == CSSValueAlpha) |
validPrimitive = true; |
break; |
+ case CSSPropertyX: |
+ case CSSPropertyY: |
+ validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttributeMode)); |
+ break; |
/* shorthand properties */ |
case CSSPropertyMarker: { |