| Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| index d3a1b53818ddfa740618fb6a9de596febcc56471..6ad5b1c4e2d4b13fed9eaac5c9cba9fc914378b1 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp
|
| @@ -2678,7 +2678,7 @@ static CSSPrimitiveValue* consumeSelfPositionKeyword(CSSParserTokenRange& range)
|
|
|
| static CSSValue* consumeSelfPositionOverflowPosition(CSSParserTokenRange& range)
|
| {
|
| - if (identMatches<CSSValueAuto, CSSValueStretch, CSSValueBaseline, CSSValueLastBaseline>(range.peek().id()))
|
| + if (identMatches<CSSValueAuto, CSSValueNormal, CSSValueStretch, CSSValueBaseline, CSSValueLastBaseline>(range.peek().id()))
|
| return consumeIdent(range);
|
|
|
| CSSPrimitiveValue* overflowPosition = consumeIdent<CSSValueUnsafe, CSSValueSafe>(range);
|
| @@ -2692,6 +2692,14 @@ static CSSValue* consumeSelfPositionOverflowPosition(CSSParserTokenRange& range)
|
| return selfPosition;
|
| }
|
|
|
| +static CSSValue* consumeAlignItems(CSSParserTokenRange& range)
|
| +{
|
| + // align-items property does not allow the 'auto' value.
|
| + if (identMatches<CSSValueAuto>(range.peek().id()))
|
| + return nullptr;
|
| + return consumeSelfPositionOverflowPosition(range);
|
| +}
|
| +
|
| static CSSValue* consumeJustifyItems(CSSParserTokenRange& range)
|
| {
|
| CSSParserTokenRange rangeCopy = range;
|
| @@ -3451,9 +3459,11 @@ const CSSValue* CSSPropertyParser::parseSingleValue(CSSPropertyID unresolvedProp
|
| case CSSPropertyWebkitMaskRepeatX:
|
| case CSSPropertyWebkitMaskRepeatY:
|
| return nullptr;
|
| + case CSSPropertyAlignItems:
|
| + DCHECK(RuntimeEnabledFeatures::cssGridLayoutEnabled());
|
| + return consumeAlignItems(m_range);
|
| case CSSPropertyJustifySelf:
|
| case CSSPropertyAlignSelf:
|
| - case CSSPropertyAlignItems:
|
| ASSERT(RuntimeEnabledFeatures::cssGridLayoutEnabled());
|
| return consumeSelfPositionOverflowPosition(m_range);
|
| case CSSPropertyJustifyItems:
|
|
|