Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index d10f8b9cc0dfbe0e304264c470ff4129231d77ae..2cf259ef1eda10ecd30556e698a9c8ea93c97696 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -5289,6 +5289,8 @@ bool CSSPropertyParser::parseColorFromValue(CSSParserValue* value, RGBA32& c, bo |
{ |
if (acceptQuirkyColors && value->unit == CSSPrimitiveValue::CSS_NUMBER |
&& value->fValue >= 0. && value->fValue < 1000000.) { |
+ if (!value->isInt) |
+ return false; |
String str = String::format("%06d", static_cast<int>((value->fValue+.5))); |
if (!fastParseColor(c, str, !acceptQuirkyColors)) |
return false; |