Index: Source/core/css/CSSParser-in.cpp |
diff --git a/Source/core/css/CSSParser-in.cpp b/Source/core/css/CSSParser-in.cpp |
index ef0b3ff3c184acd4d55d8c2edec0638eb0277300..642dae4812acfd3a0a4f7b3126f21272c600ba75 100644 |
--- a/Source/core/css/CSSParser-in.cpp |
+++ b/Source/core/css/CSSParser-in.cpp |
@@ -4719,7 +4719,7 @@ PassRefPtr<CSSPrimitiveValue> CSSParser::parseGridBreadth(CSSParserValue* curren |
return cssValuePool().createValue(flexValue, CSSPrimitiveValue::CSS_FR); |
} |
- if (!validUnit(currentValue, FLength | FPercent)) |
+ if (!validUnit(currentValue, FNonNeg | FLength | FPercent)) |
return 0; |
return createPrimitiveNumericValue(currentValue); |