Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index 7c5d2c7b74d8a20cb2ca029de3daa5590f5d90b5..741549bb1426afc55672f08d94844f1f7a506453 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -5735,7 +5735,7 @@ bool CSSPropertyParser::parseFlex(CSSParserValueList* args, bool important) |
// We only allow 3 numbers without units if the last value is 0. E.g., flex:1 1 1 is invalid. |
return false; |
} |
- } else if (!flexBasis && (arg->id == CSSValueAuto || (validUnit(arg, FLength | FPercent | FNonNeg) && !isFlexBasisMiddleArg(flexGrow, flexShrink, unsetValue, args->size())))) |
+ } else if (!flexBasis && (arg->id == CSSValueAuto || validUnit(arg, FLength | FPercent | FNonNeg)) && !isFlexBasisMiddleArg(flexGrow, flexShrink, unsetValue, args->size())) |
flexBasis = parseValidPrimitive(arg->id, arg); |
else { |
// Not a valid arg for flex. |