<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196978] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196978">196978</a></dd>
<dt>Author</dt> <dd>rego@igalia.com</dd>
<dt>Date</dt> <dd>2016-02-23 08:49:54 -0800 (Tue, 23 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>[css-grid] Rows track sizes are optional in grid-template shorthand
https://bugs.webkit.org/show_bug.cgi?id=154586

Reviewed by Sergio Villar Senin.

You can omit the size of the rows in grid-template shorthand,
even if you specify a named grid line for the end of the row,
due to a change in the spec back in 2014:
https://github.com/w3c/csswg-drafts/commit/9f660c4183c73c1f5279c46904dc6cb314f76194

Before if you want to specify a named grid line,
you need to set the row size.

Update parsing, so it nows accepts things like:
    grid-template: 100px / &quot;a&quot; [bottom];
Source/WebCore:

* css/CSSParser.cpp:
(WebCore::CSSParser::parseGridTemplateRowsAndAreasAndColumns):
(WebCore::CSSParser::parseGridTemplateShorthand):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridtemplateshorthandgetsetexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridtemplateshorthandgetsethtml">trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set.html</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSParsercpp">trunk/Source/WebCore/css/CSSParser.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (196977 => 196978)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-02-23 16:30:50 UTC (rev 196977)
+++ trunk/LayoutTests/ChangeLog        2016-02-23 16:49:54 UTC (rev 196978)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2016-02-23  Manuel Rego Casasnovas  &lt;rego@igalia.com&gt;
+
+        [css-grid] Rows track sizes are optional in grid-template shorthand
+        https://bugs.webkit.org/show_bug.cgi?id=154586
+
+        Reviewed by Sergio Villar Senin.
+
+        You can omit the size of the rows in grid-template shorthand,
+        even if you specify a named grid line for the end of the row,
+        due to a change in the spec back in 2014:
+        https://github.com/w3c/csswg-drafts/commit/9f660c4183c73c1f5279c46904dc6cb314f76194
+
+        Before if you want to specify a named grid line,
+        you need to set the row size.
+
+        Update parsing, so it nows accepts things like:
+            grid-template: 100px / &quot;a&quot; [bottom];
+
</ins><span class="cx"> 2016-02-23  Nikos Andronikos  &lt;nikos.andronikos-webkit@cisra.canon.com.au&gt;
</span><span class="cx"> 
</span><span class="cx">         [SVG] Update SVG source to return string literals as ASCIILiteral and add test cases for case sensitivity
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridtemplateshorthandgetsetexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt (196977 => 196978)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt        2016-02-23 16:30:50 UTC (rev 196977)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set-expected.txt        2016-02-23 16:49:54 UTC (rev 196978)
</span><span class="lines">@@ -25,15 +25,27 @@
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-rows') is &quot;[head] 15px [tail]&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNames, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a\&quot;&quot;
</span><ins>+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesWithoutRowSize, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesWithoutRowSize, '').getPropertyValue('-webkit-grid-template-rows') is &quot;[head] 0px [tail]&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesWithoutRowSize, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a\&quot;&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-rows') is &quot;[head] 15px [tail]&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumns, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a b\&quot;&quot;
</span><ins>+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumnsWithoutRowSize, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumnsWithoutRowSize, '').getPropertyValue('-webkit-grid-template-rows') is &quot;[head] 0px [tail]&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleColumnsWithoutRowSize, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a b\&quot;&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-rows') is &quot;[head1] 15px [tail1 head2] 20px [tail2]&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRows, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a\&quot; \&quot;b\&quot;&quot;
</span><ins>+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsWithoutRowsSizes, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsWithoutRowsSizes, '').getPropertyValue('-webkit-grid-template-rows') is &quot;[head1] 0px [tail1 head2] 0px [tail2]&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsWithoutRowsSizes, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a\&quot; \&quot;b\&quot;&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-columns') is &quot;[first] 10px [nav nav2] 15px [nav nav2] 15px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-rows') is &quot;100px [nav nav2] 25px [nav nav2] 25px [last]&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a b c\&quot; \&quot;d e f\&quot; \&quot;g h i\&quot;&quot;
</span><ins>+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumnsWithoutRowsSizes, '').getPropertyValue('-webkit-grid-template-columns') is &quot;[first] 10px [nav nav2] 15px [nav nav2] 15px&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumnsWithoutRowsSizes, '').getPropertyValue('-webkit-grid-template-rows') is &quot;0px [nav nav2] 0px [nav nav2] 0px [last]&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormWithLineNamesMultipleRowsAndColumnsWithoutRowsSizes, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a b c\&quot; \&quot;d e f\&quot; \&quot;g h i\&quot;&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyValue('-webkit-grid-template-columns') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyValue('-webkit-grid-template-rows') is &quot;0px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormWithAuto, '').getPropertyValue('-webkit-grid-template-areas') is &quot;\&quot;a\&quot;&quot;
</span><span class="lines">@@ -96,6 +108,12 @@
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize2, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span><ins>+PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize3, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize3, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize3, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize4, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize4, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridTemplateComplexFormMisplacedRowsSize4, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridTemplateComplexFormColumnsNotParsing1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridtemplateshorthandgetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set.html (196977 => 196978)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set.html        2016-02-23 16:30:50 UTC (rev 196977)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-template-shorthand-get-set.html        2016-02-23 16:49:54 UTC (rev 196978)
</span><span class="lines">@@ -24,18 +24,33 @@
</span><span class="cx"> #gridTemplateComplexFormWithLineNames {
</span><span class="cx">     -webkit-grid-template: [head] &quot;a&quot; 15px [tail] / 10px;
</span><span class="cx"> }
</span><ins>+#gridTemplateComplexFormWithLineNamesWithoutRowSize {
+    -webkit-grid-template: [head] &quot;a&quot; [tail] / 10px;
+}
</ins><span class="cx"> #gridTemplateComplexFormWithLineNamesMultipleColumns {
</span><span class="cx">     -webkit-grid-template: [head] &quot;a b&quot; 15px [tail] / 10px;
</span><span class="cx"> }
</span><ins>+#gridTemplateComplexFormWithLineNamesMultipleColumnsWithoutRowSize {
+    -webkit-grid-template: [head] &quot;a b&quot; [tail] / 10px;
+}
</ins><span class="cx"> #gridTemplateComplexFormWithLineNamesMultipleRows {
</span><span class="cx">     -webkit-grid-template: [head1] &quot;a&quot; 15px [tail1]
</span><span class="cx">                            [head2] &quot;b&quot; 20px [tail2] / 10px;
</span><span class="cx"> }
</span><ins>+#gridTemplateComplexFormWithLineNamesMultipleRowsWithoutRowsSizes {
+    -webkit-grid-template: [head1] &quot;a&quot; [tail1]
+                           [head2] &quot;b&quot; [tail2] / 10px;
+}
</ins><span class="cx"> #gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns {
</span><span class="cx">     -webkit-grid-template:        &quot;a b c&quot; 100px [nav]
</span><span class="cx">                            [nav2] &quot;d e f&quot; 25px  [nav]
</span><span class="cx">                            [nav2] &quot;g h i&quot; 25px  [last] / [first] 10px repeat(2, [nav nav2] 15px);
</span><span class="cx"> }
</span><ins>+#gridTemplateComplexFormWithLineNamesMultipleRowsAndColumnsWithoutRowsSizes {
+    -webkit-grid-template:        &quot;a b c&quot; [nav]
+                           [nav2] &quot;d e f&quot; [nav]
+                           [nav2] &quot;g h i&quot; [last] / [first] 10px repeat(2, [nav nav2] 15px);
+}
</ins><span class="cx"> #gridTemplateComplexFormWithAuto {
</span><span class="cx">     -webkit-grid-template: &quot;a&quot; / 10px;
</span><span class="cx"> }
</span><span class="lines">@@ -99,6 +114,13 @@
</span><span class="cx"> #gridTemplateComplexFormMisplacedRowsSize2 {
</span><span class="cx">     -webkit-grid-template: &quot;a&quot; [name] 10px / 25px;
</span><span class="cx"> }
</span><ins>+#gridTemplateComplexFormMisplacedRowsSize3 {
+    -webkit-grid-template: [head] &quot;a&quot; [tail] 10px / 10px;
+}
+#gridTemplateComplexFormMisplacedRowsSize4 {
+    -webkit-grid-template: [head1] &quot;a&quot; [tail1]
+                           [head2] &quot;a&quot; [tail2] 100px / 10px;
+}
</ins><span class="cx"> #gridTemplateComplexFormColumnsNotParsing1 {
</span><span class="cx">     -webkit-grid-template: &quot;a&quot; [name] 10px / a;
</span><span class="cx"> }
</span><span class="lines">@@ -126,9 +148,13 @@
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateSimpleFormWithNone&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexForm&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNames&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesWithoutRowSize&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesMultipleColumns&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesMultipleColumnsWithoutRowSize&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesMultipleRows&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesMultipleRowsWithoutRowsSizes&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithLineNamesMultipleRowsAndColumnsWithoutRowsSizes&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithAuto&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormOnlyAreas&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateNoColumnsRowWithEmptyTrailingLineNames&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -151,6 +177,8 @@
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormNoColumnSize&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormMisplacedRowsSize1&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormMisplacedRowsSize2&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormMisplacedRowsSize3&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormMisplacedRowsSize4&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormColumnsNotParsing1&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormColumnsNotParsing2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridTemplateComplexFormWithNoneColumns&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -167,9 +195,13 @@
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateSimpleFormWithNone&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexForm&quot;), &quot;10px&quot;, &quot;15px&quot;, '&quot;a&quot;');
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNames&quot;), &quot;10px&quot;, &quot;[head] 15px [tail]&quot;, '&quot;a&quot;');
</span><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesWithoutRowSize&quot;), &quot;10px&quot;, &quot;[head] 0px [tail]&quot;, '&quot;a&quot;');
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesMultipleColumns&quot;), &quot;10px&quot;, &quot;[head] 15px [tail]&quot;, '&quot;a b&quot;');
</span><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesMultipleColumnsWithoutRowSize&quot;), &quot;10px&quot;, &quot;[head] 0px [tail]&quot;, '&quot;a b&quot;');
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesMultipleRows&quot;), &quot;10px&quot;, &quot;[head1] 15px [tail1 head2] 20px [tail2]&quot;, '&quot;a&quot; &quot;b&quot;');
</span><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesMultipleRowsWithoutRowsSizes&quot;), &quot;10px&quot;, &quot;[head1] 0px [tail1 head2] 0px [tail2]&quot;, '&quot;a&quot; &quot;b&quot;');
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesMultipleRowsAndColumns&quot;), &quot;[first] 10px [nav nav2] 15px [nav nav2] 15px&quot;, &quot;100px [nav nav2] 25px [nav nav2] 25px [last]&quot;, '&quot;a b c&quot; &quot;d e f&quot; &quot;g h i&quot;');
</span><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithLineNamesMultipleRowsAndColumnsWithoutRowsSizes&quot;), &quot;[first] 10px [nav nav2] 15px [nav nav2] 15px&quot;, &quot;0px [nav nav2] 0px [nav nav2] 0px [last]&quot;, '&quot;a b c&quot; &quot;d e f&quot; &quot;g h i&quot;');
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithAuto&quot;), &quot;10px&quot;, &quot;0px&quot;, '&quot;a&quot;');
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormOnlyAreas&quot;), &quot;none&quot;, &quot;0px&quot;, '&quot;a&quot;');
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateNoColumnsRowWithEmptyTrailingLineNames&quot;), &quot;none&quot;, &quot;[first] 0px&quot;, '&quot;a&quot;');
</span><span class="lines">@@ -193,6 +225,8 @@
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormNoColumnSize&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormMisplacedRowsSize1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormMisplacedRowsSize2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormMisplacedRowsSize3&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
+    testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormMisplacedRowsSize4&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormColumnsNotParsing1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormColumnsNotParsing2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridTemplateComplexFormWithNoneColumns&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;);
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (196977 => 196978)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-02-23 16:30:50 UTC (rev 196977)
+++ trunk/Source/WebCore/ChangeLog        2016-02-23 16:49:54 UTC (rev 196978)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2016-02-23  Manuel Rego Casasnovas  &lt;rego@igalia.com&gt;
+
+        [css-grid] Rows track sizes are optional in grid-template shorthand
+        https://bugs.webkit.org/show_bug.cgi?id=154586
+
+        Reviewed by Sergio Villar Senin.
+
+        You can omit the size of the rows in grid-template shorthand,
+        even if you specify a named grid line for the end of the row,
+        due to a change in the spec back in 2014:
+        https://github.com/w3c/csswg-drafts/commit/9f660c4183c73c1f5279c46904dc6cb314f76194
+
+        Before if you want to specify a named grid line,
+        you need to set the row size.
+
+        Update parsing, so it nows accepts things like:
+            grid-template: 100px / &quot;a&quot; [bottom];
+
+        * css/CSSParser.cpp:
+        (WebCore::CSSParser::parseGridTemplateRowsAndAreasAndColumns):
+        (WebCore::CSSParser::parseGridTemplateShorthand):
+
</ins><span class="cx"> 2016-02-23  Nikos Andronikos  &lt;nikos.andronikos-webkit@cisra.canon.com.au&gt;
</span><span class="cx"> 
</span><span class="cx">         [SVG] Update SVG source to return string literals as ASCIILiteral and add test cases for case sensitivity
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.cpp (196977 => 196978)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.cpp        2016-02-23 16:30:50 UTC (rev 196977)
+++ trunk/Source/WebCore/css/CSSParser.cpp        2016-02-23 16:49:54 UTC (rev 196978)
</span><span class="lines">@@ -5606,7 +5606,7 @@
</span><span class="cx">         ++rowCount;
</span><span class="cx"> 
</span><span class="cx">         // Handle template-rows's track-size.
</span><del>-        if (m_valueList-&gt;current() &amp;&amp; !isForwardSlashOperator(*m_valueList-&gt;current()) &amp;&amp; m_valueList-&gt;current()-&gt;unit != CSSParserValue::ValueList &amp;&amp; m_valueList-&gt;current()-&gt;unit != CSSPrimitiveValue::CSS_STRING) {
</del><ins>+        if (m_valueList-&gt;current() &amp;&amp; m_valueList-&gt;current()-&gt;unit != CSSParserValue::Operator &amp;&amp; m_valueList-&gt;current()-&gt;unit != CSSParserValue::ValueList &amp;&amp; m_valueList-&gt;current()-&gt;unit != CSSPrimitiveValue::CSS_STRING) {
</ins><span class="cx">             RefPtr&lt;CSSValue&gt; value = parseGridTrackSize(*m_valueList);
</span><span class="cx">             if (!value)
</span><span class="cx">                 return false;
</span><span class="lines">@@ -5679,7 +5679,7 @@
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-    // 3- [&lt;line-names&gt;? &lt;string&gt; [&lt;track-size&gt; &lt;line-names&gt;]? ]+ syntax.
</del><ins>+    // 3- [&lt;line-names&gt;? &lt;string&gt; &lt;track-size&gt;? &lt;line-names&gt;? ]+ syntax.
</ins><span class="cx">     // It requires to rewind parsing due to previous syntax failures.
</span><span class="cx">     m_valueList-&gt;setCurrentIndex(0);
</span><span class="cx">     return parseGridTemplateRowsAndAreasAndColumns(important);
</span></span></pre>
</div>
</div>

</body>
</html>