Index: Source/core/css/parser/LegacyCSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
index 4ff194363e6d3b2e1bb460f54bee6e15d56ea09d..a325c6de66270e4549faa86f99b5b80f96ee091e 100644 |
--- a/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
+++ b/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
@@ -3616,7 +3616,7 @@ PassRefPtrWillBeRawPtr<CSSPrimitiveValue> CSSPropertyParser::parseGridBreadth(CS |
double flexValue = currentValue->fValue; |
// Fractional unit is a non-negative dimension. |
- if (flexValue <= 0) |
+ if (flexValue < 0) |
return nullptr; |
return cssValuePool().createValue(flexValue, CSSPrimitiveValue::UnitType::Fraction); |