Index: Source/core/css/CSSParser.cpp |
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp |
index 062538c1ae12eb700ce56f116a25628b6f5a9e3a..ad8b9260ad0d70e6546e65df0f6067b97e7d880d 100644 |
--- a/Source/core/css/CSSParser.cpp |
+++ b/Source/core/css/CSSParser.cpp |
@@ -4672,7 +4672,18 @@ bool CSSParser::parseGridTrackList(CSSPropertyID propId, bool important) |
} |
RefPtr<CSSValueList> values = CSSValueList::createSpaceSeparated(); |
+ size_t currentLineNumber = 0; |
while (m_valueList->current()) { |
+ while (m_valueList->current() && m_valueList->current()->unit == CSSPrimitiveValue::CSS_STRING) { |
+ RefPtr<CSSPrimitiveValue> name = createPrimitiveStringValue(m_valueList->current()); |
+ values->append(name); |
+ m_valueList->next(); |
+ } |
+ |
+ // This allows trailing <string>* per the specification. |
+ if (!m_valueList->current()) |
+ break; |
+ |
RefPtr<CSSPrimitiveValue> primitiveValue = parseGridTrackSize(); |
if (!primitiveValue) |
return false; |