| Index: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| index b679a6669d6dccd8a8bc3850be9ac73e978658aa..1974d0f4fefd6fb33bc8b7ad7d8b730eb84e9655 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -1480,7 +1480,7 @@ bool CSSPropertyParser::parseGridTemplateRowsAndAreasAndColumns(bool important)
|
| ++rowCount;
|
|
|
| // Handle template-rows's track-size.
|
| - if (m_valueList->current() && !isForwardSlashOperator(m_valueList->current()) && m_valueList->current()->m_unit != CSSParserValue::String) {
|
| + if (m_valueList->current() && m_valueList->current()->m_unit != CSSParserValue::Operator && m_valueList->current()->m_unit != CSSParserValue::String) {
|
| RefPtrWillBeRawPtr<CSSValue> value = parseGridTrackSize(*m_valueList);
|
| if (!value)
|
| return false;
|
| @@ -1556,7 +1556,7 @@ bool CSSPropertyParser::parseGridTemplateShorthand(bool important)
|
| return true;
|
| }
|
|
|
| - // 3- [<line-names>? <string> [<track-size> <line-names>]? ]+ syntax.
|
| + // 3- [<line-names>? <string> <track-size>? <line-names>? ]+ syntax.
|
| // It requires to rewind parsing due to previous syntax failures.
|
| m_valueList->setCurrentIndex(0);
|
| return parseGridTemplateRowsAndAreasAndColumns(important);
|
|
|