Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index 1039c4957a215595c0e1ae25a067098373b18aae..f96ca4c4cb765574c08bb0ca790ff02126ac1dbb 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -5789,7 +5789,7 @@ bool CSSPropertyParser::parseFlex(CSSParserValueList* args, bool important) |
if (flexShrink == unsetValue) |
flexShrink = 1; |
if (!flexBasis) |
- flexBasis = cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PX); |
+ flexBasis = cssValuePool().createValue(0, CSSPrimitiveValue::CSS_PERCENTAGE); |
addProperty(CSSPropertyFlexGrow, cssValuePool().createValue(clampToFloat(flexGrow), CSSPrimitiveValue::CSS_NUMBER), important); |
addProperty(CSSPropertyFlexShrink, cssValuePool().createValue(clampToFloat(flexShrink), CSSPrimitiveValue::CSS_NUMBER), important); |