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 04699821fd86048d37303e5eaafed4ebdaafd0fe..20f512a066f73ac4571a27d96395f692bcc2a9ec 100644 |
--- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp |
@@ -1521,7 +1521,7 @@ bool CSSPropertyParser::parseGridTemplateRowsAndAreas(PassRefPtrWillBeRawPtr<CSS |
++rowCount; |
// Handle template-rows's track-size. |
- if (m_valueList->current() && m_valueList->current()->m_unit != CSSParserValue::String) { |
+ if (m_valueList->current() && m_valueList->current()->m_unit != CSSParserValue::String && m_valueList->current()->m_unit != CSSParserValue::Operator) { |
RefPtrWillBeRawPtr<CSSValue> value = parseGridTrackSize(*m_valueList); |
if (!value) |
return false; |
@@ -1596,7 +1596,7 @@ bool CSSPropertyParser::parseGridTemplateShorthand(bool important) |
} |
- // 3- [<track-list> /]? [<line-names>? <string> [<track-size> <line-names>]? ]+ syntax. |
+ // 3- [<track-list> /]? [<line-names>? <string> <track-size>? <line-names>? ]+ syntax. |
// The template-columns <track-list> can't be 'none'. |
if (firstValueIsNone) |
return false; |