<!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>[177858] 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/177858">177858</a></dd>
<dt>Author</dt> <dd>rego@igalia.com</dd>
<dt>Date</dt> <dd>2015-01-02 02:01:11 -0800 (Fri, 02 Jan 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[CSS Grid Layout] Remove stack from grid-auto-flow syntax
https://bugs.webkit.org/show_bug.cgi?id=134842

Reviewed by Sergio Villar Senin.

Source/WebCore:

&quot;stack&quot; mode for grid-auto-flow property has been removed from the grid
layout spec. New syntax is:
  [ row | column ] || dense

Modified parsing in order to adapt it to the new syntax.

Also the current behavior relying on &quot;stack&quot; has been updated following
the spec. Now it won't be possible to mimic the old &quot;none&quot; (or &quot;stack&quot;)
unless you specify manually the grid-placement properties.

No new tests needed, updated current tests to adapt them to the new
behavior.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::ComputedStyleExtractor::propertyValue): Adapt to new syntax.
* css/CSSParser.cpp:
(WebCore::isValidGridAutoFlowId): Remove &quot;stack&quot; from valid ids.
(WebCore::CSSParser::parseGridAutoFlow): Adapt to new syntax.
* css/CSSValueKeywords.in: Remove &quot;stack&quot;.
* css/StyleResolver.cpp:
(WebCore::StyleResolver::applyProperty): Adapt to new syntax.
* rendering/RenderGrid.cpp:
(WebCore::RenderGrid::placeItemsOnGrid): Remove old &quot;stack&quot; code.
* rendering/style/GridResolvedPosition.cpp:
(WebCore::GridResolvedPosition::resolveGridPositionsFromStyle): If we
cannot resolve positions, we have to run the auto-placement algorithm.
* rendering/style/RenderStyle.h: Remove &quot;stack&quot;.
* rendering/style/RenderStyleConstants.h: Ditto.

LayoutTests:

Update layout tests in order to adapt the results to the new behavior.

* fast/css-grid-layout/grid-auto-flow-get-set-expected.txt:
* fast/css-grid-layout/grid-auto-flow-get-set.html:
* fast/css-grid-layout/grid-auto-flow-update.html:
* fast/css-grid-layout/grid-item-named-grid-area-resolution.html:
* fast/css-grid-layout/grid-item-z-index-change-repaint.html:
* fast/css-grid-layout/grid-item-z-index-stacking-context.html:
* fast/css-grid-layout/grid-shorthand-get-set-expected.txt:
* fast/css-grid-layout/grid-shorthand-get-set.html:
* fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html:
* fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html:
* ietestcenter/css3/grid/grid-column-001.htm:
* ietestcenter/css3/grid/grid-column-002.htm:
* ietestcenter/css3/grid/grid-column-003.htm:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridautoflowgetsetexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridautoflowgetsethtml">trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridautoflowupdatehtml">trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-update.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemnamedgridarearesolutionhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-named-grid-area-resolution.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemzindexchangerepainthtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemzindexstackingcontexthtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridshorthandgetsetexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridshorthandgetsethtml">trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutnamedgridlineswithnamedgridareasdynamicgetsethtml">trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutnamedgridlineswithnamedgridareasresolutionhtml">trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html</a></li>
<li><a href="#trunkLayoutTestsietestcentercss3gridgridcolumn001htm">trunk/LayoutTests/ietestcenter/css3/grid/grid-column-001.htm</a></li>
<li><a href="#trunkLayoutTestsietestcentercss3gridgridcolumn002htm">trunk/LayoutTests/ietestcenter/css3/grid/grid-column-002.htm</a></li>
<li><a href="#trunkLayoutTestsietestcentercss3gridgridcolumn003htm">trunk/LayoutTests/ietestcenter/css3/grid/grid-column-003.htm</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssCSSComputedStyleDeclarationcpp">trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSParsercpp">trunk/Source/WebCore/css/CSSParser.cpp</a></li>
<li><a href="#trunkSourceWebCorecssCSSValueKeywordsin">trunk/Source/WebCore/css/CSSValueKeywords.in</a></li>
<li><a href="#trunkSourceWebCorecssStyleResolvercpp">trunk/Source/WebCore/css/StyleResolver.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingRenderGridcpp">trunk/Source/WebCore/rendering/RenderGrid.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleGridResolvedPositioncpp">trunk/Source/WebCore/rendering/style/GridResolvedPosition.cpp</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleRenderStyleh">trunk/Source/WebCore/rendering/style/RenderStyle.h</a></li>
<li><a href="#trunkSourceWebCorerenderingstyleRenderStyleConstantsh">trunk/Source/WebCore/rendering/style/RenderStyleConstants.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/ChangeLog        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2015-01-02  Manuel Rego Casasnovas  &lt;rego@igalia.com&gt;
+
+        [CSS Grid Layout] Remove stack from grid-auto-flow syntax
+        https://bugs.webkit.org/show_bug.cgi?id=134842
+
+        Reviewed by Sergio Villar Senin.
+
+        Update layout tests in order to adapt the results to the new behavior.
+
+        * fast/css-grid-layout/grid-auto-flow-get-set-expected.txt:
+        * fast/css-grid-layout/grid-auto-flow-get-set.html:
+        * fast/css-grid-layout/grid-auto-flow-update.html:
+        * fast/css-grid-layout/grid-item-named-grid-area-resolution.html:
+        * fast/css-grid-layout/grid-item-z-index-change-repaint.html:
+        * fast/css-grid-layout/grid-item-z-index-stacking-context.html:
+        * fast/css-grid-layout/grid-shorthand-get-set-expected.txt:
+        * fast/css-grid-layout/grid-shorthand-get-set.html:
+        * fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html:
+        * fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html:
+        * ietestcenter/css3/grid/grid-column-001.htm:
+        * ietestcenter/css3/grid/grid-column-002.htm:
+        * ietestcenter/css3/grid/grid-column-003.htm:
+
</ins><span class="cx"> 2015-01-01  Yusuke Suzuki  &lt;utatane.tea@gmail.com&gt;
</span><span class="cx"> 
</span><span class="cx">         String includes methods perform toString on searchString before toInteger on a offset
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridautoflowgetsetexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set-expected.txt        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -6,15 +6,11 @@
</span><span class="cx"> Test getting -webkit-grid-auto-flow set through CSS
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowColumnSparse, '').getPropertyValue('-webkit-grid-auto-flow') is 'column'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowRowSparse, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><ins>+PASS window.getComputedStyle(gridAutoFlowDense, '').getPropertyValue('-webkit-grid-auto-flow') is 'row dense'
</ins><span class="cx"> PASS window.getComputedStyle(gridAutoFlowColumnDense, '').getPropertyValue('-webkit-grid-auto-flow') is 'column dense'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowRowDense, '').getPropertyValue('-webkit-grid-auto-flow') is 'row dense'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowDenseColumn, '').getPropertyValue('-webkit-grid-auto-flow') is 'column dense'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowDenseRow, '').getPropertyValue('-webkit-grid-auto-flow') is 'row dense'
</span><del>-PASS window.getComputedStyle(gridAutoFlowStack, '').getPropertyValue('-webkit-grid-auto-flow') is 'row stack'
-PASS window.getComputedStyle(gridAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-auto-flow') is 'column stack'
-PASS window.getComputedStyle(gridAutoFlowStackRow, '').getPropertyValue('-webkit-grid-auto-flow') is 'row stack'
-PASS window.getComputedStyle(gridAutoFlowColumnStack, '').getPropertyValue('-webkit-grid-auto-flow') is 'column stack'
-PASS window.getComputedStyle(gridAutoFlowRowStack, '').getPropertyValue('-webkit-grid-auto-flow') is 'row stack'
</del><span class="cx"> PASS window.getComputedStyle(gridAutoFlowInherit, '').getPropertyValue('-webkit-grid-auto-flow') is 'column'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowNoInherit, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><span class="cx"> 
</span><span class="lines">@@ -22,12 +18,9 @@
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowNone, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowColumns, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowRows, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><del>-PASS window.getComputedStyle(gridAutoFlowDense, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</del><span class="cx"> PASS window.getComputedStyle(gridAutoFlowColumnFoo, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><span class="cx"> PASS window.getComputedStyle(gridAutoFlowColumnColumn, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><del>-PASS window.getComputedStyle(gridAutoFlowDenseColumnStack, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
-PASS window.getComputedStyle(gridAutoFlowDenseRowStack, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
-PASS window.getComputedStyle(gridAutoFlowStackRowRow, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</del><ins>+PASS window.getComputedStyle(gridAutoFlowDenseRowRow, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</ins><span class="cx"> 
</span><span class="cx"> Test the initial value
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is ''
</span><span class="lines">@@ -40,22 +33,14 @@
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'column dense'
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is 'row dense'
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row dense'
</span><ins>+PASS element.style.webkitGridAutoFlow is 'row dense'
+PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row dense'
</ins><span class="cx"> PASS element.style.webkitGridAutoFlow is 'column dense'
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'column dense'
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is 'row dense'
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row dense'
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is 'row'
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><del>-PASS element.style.webkitGridAutoFlow is 'row stack'
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row stack'
-PASS element.style.webkitGridAutoFlow is 'column stack'
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'column stack'
-PASS element.style.webkitGridAutoFlow is 'row stack'
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row stack'
-PASS element.style.webkitGridAutoFlow is 'column stack'
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'column stack'
-PASS element.style.webkitGridAutoFlow is 'row stack'
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row stack'
</del><span class="cx"> 
</span><span class="cx"> Test getting and setting bad values for -webkit-grid-auto-flow through JS
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is ''
</span><span class="lines">@@ -64,12 +49,6 @@
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is ''
</span><span class="cx"> PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</span><del>-PASS element.style.webkitGridAutoFlow is ''
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
-PASS element.style.webkitGridAutoFlow is ''
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
-PASS element.style.webkitGridAutoFlow is ''
-PASS window.getComputedStyle(element, '').getPropertyValue('-webkit-grid-auto-flow') is 'row'
</del><span class="cx"> 
</span><span class="cx"> Test setting -webkit-grid-auto-flow to 'initial' through JS
</span><span class="cx"> PASS element.style.webkitGridAutoFlow is 'initial'
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridautoflowgetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -3,6 +3,9 @@
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><ins>+.gridAutoFlowDense {
+    -webkit-grid-auto-flow: dense;
+}
</ins><span class="cx"> .gridAutoFlowColumnDense {
</span><span class="cx">     -webkit-grid-auto-flow: column dense;
</span><span class="cx"> }
</span><span class="lines">@@ -15,18 +18,6 @@
</span><span class="cx"> .gridAutoFlowDenseRow {
</span><span class="cx">     -webkit-grid-auto-flow: dense row;
</span><span class="cx"> }
</span><del>-.gridAutoFlowStackColumn {
-    -webkit-grid-auto-flow: stack column;
-}
-.gridAutoFlowStackRow {
-    -webkit-grid-auto-flow: stack row;
-}
-.gridAutoFlowColumnStack {
-    -webkit-grid-auto-flow: column stack;
-}
-.gridAutoFlowRowStack {
-    -webkit-grid-auto-flow: row stack;
-}
</del><span class="cx"> .gridAutoFlowInherit {
</span><span class="cx">     -webkit-grid-auto-flow: inherit;
</span><span class="cx"> }
</span><span class="lines">@@ -40,24 +31,15 @@
</span><span class="cx"> .gridAutoFlowColumns {
</span><span class="cx">     -webkit-grid-auto-flow: columns;
</span><span class="cx"> }
</span><del>-.gridAutoFlowDense {
-    -webkit-grid-auto-flow: dense;
-}
</del><span class="cx"> .gridAutoFlowColumnFoo {
</span><span class="cx">     -webkit-grid-auto-flow: column foo;
</span><span class="cx"> }
</span><span class="cx"> .gridAutoFlowColumnColumn {
</span><span class="cx">     -webkit-grid-auto-flow: column column;
</span><span class="cx"> }
</span><del>-.gridAutoFlowDenseColumnStack {
-    -webkit-grid-auto-flow: dense column stack;
</del><ins>+.gridAutoFlowDenseRowRow {
+    -webkit-grid-auto-flow: dense row row;
</ins><span class="cx"> }
</span><del>-.gridAutoFlowDenseRowStack {
-    -webkit-grid-auto-flow: dense row stack;
-}
-.gridAutoFlowStackRowRow {
-    -webkit-grid-auto-flow: stack row row;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="lines">@@ -65,15 +47,11 @@
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridInitial&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowColumnSparse&quot; id=&quot;gridAutoFlowColumnSparse&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowRowSparse&quot; id=&quot;gridAutoFlowRowSparse&quot;&gt;&lt;/div&gt;
</span><ins>+&lt;div class=&quot;grid gridAutoFlowDense&quot; id=&quot;gridAutoFlowDense&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid gridAutoFlowColumnDense&quot; id=&quot;gridAutoFlowColumnDense&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowRowDense&quot; id=&quot;gridAutoFlowRowDense&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowDenseColumn&quot; id=&quot;gridAutoFlowDenseColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowDenseRow&quot; id=&quot;gridAutoFlowDenseRow&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridAutoFlowStack&quot; id=&quot;gridAutoFlowStack&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridAutoFlowStackColumn&quot; id=&quot;gridAutoFlowStackColumn&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridAutoFlowStackRow&quot; id=&quot;gridAutoFlowStackRow&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridAutoFlowColumnStack&quot; id=&quot;gridAutoFlowColumnStack&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridAutoFlowRowStack&quot; id=&quot;gridAutoFlowRowStack&quot;&gt;&lt;/div&gt;
</del><span class="cx"> &lt;div class=&quot;grid gridAutoFlowColumnSparse&quot;&gt;
</span><span class="cx">     &lt;div class=&quot;grid gridAutoFlowInherit&quot; id=&quot;gridAutoFlowInherit&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -83,12 +61,9 @@
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowNone&quot; id=&quot;gridAutoFlowNone&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowColumns&quot; id=&quot;gridAutoFlowColumns&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowRows&quot; id=&quot;gridAutoFlowRows&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridAutoFlowDense&quot; id=&quot;gridAutoFlowDense&quot;&gt;&lt;/div&gt;
</del><span class="cx"> &lt;div class=&quot;grid gridAutoFlowColumnFoo&quot; id=&quot;gridAutoFlowColumnFoo&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid gridAutoFlowColumnColumn&quot; id=&quot;gridAutoFlowColumnColumn&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridAutoFlowDenseColumnStack&quot; id=&quot;gridAutoFlowDenseColumnStack&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridAutoFlowDenseRowStack&quot; id=&quot;gridAutoFlowDenseRowStack&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridAutoFlowStackRowRow&quot; id=&quot;gridAutoFlowStackRowRow&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid gridAutoFlowDenseRowRow&quot; id=&quot;gridAutoFlowDenseRowRow&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;script src=&quot;resources/grid-definitions-parsing-utils.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="cx">     description('Test that setting and getting -webkit-grid-auto-flow works as expected');
</span><span class="lines">@@ -96,15 +71,11 @@
</span><span class="cx">     debug(&quot;Test getting -webkit-grid-auto-flow set through CSS&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowColumnSparse&quot;, &quot;column&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowRowSparse&quot;, &quot;row&quot;);
</span><ins>+    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDense&quot;, &quot;row dense&quot;);
</ins><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowColumnDense&quot;, &quot;column dense&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowRowDense&quot;, &quot;row dense&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDenseColumn&quot;, &quot;column dense&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDenseRow&quot;, &quot;row dense&quot;);
</span><del>-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowStack&quot;, &quot;row stack&quot;);
-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowStackColumn&quot;, &quot;column stack&quot;);
-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowStackRow&quot;, &quot;row stack&quot;);
-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowColumnStack&quot;, &quot;column stack&quot;);
-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowRowStack&quot;, &quot;row stack&quot;);
</del><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowInherit&quot;, &quot;column&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowNoInherit&quot;, &quot;row&quot;);
</span><span class="cx"> 
</span><span class="lines">@@ -113,12 +84,9 @@
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowNone&quot;, &quot;row&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowColumns&quot;, &quot;row&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowRows&quot;, &quot;row&quot;);
</span><del>-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDense&quot;, &quot;row&quot;);
</del><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowColumnFoo&quot;, &quot;row&quot;);
</span><span class="cx">     checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowColumnColumn&quot;, &quot;row&quot;);
</span><del>-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDenseColumnStack&quot;, &quot;row&quot;);
-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDenseRowStack&quot;, &quot;row&quot;);
-    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowStackRowRow&quot;, &quot;row&quot;);
</del><ins>+    checkGridAutoFlowSetCSSValue(&quot;gridAutoFlowDenseRowRow&quot;, &quot;row&quot;);
</ins><span class="cx"> 
</span><span class="cx">     debug(&quot;&quot;);
</span><span class="cx">     debug(&quot;Test the initial value&quot;);
</span><span class="lines">@@ -128,24 +96,17 @@
</span><span class="cx">     debug(&quot;Test getting and setting -webkit-grid-auto-flow through JS&quot;);
</span><span class="cx">     checkGridAutoFlowSetJSValue(&quot;column&quot;, &quot;column&quot;, &quot;column&quot;);
</span><span class="cx">     checkGridAutoFlowSetJSValue(&quot;column dense&quot;, &quot;column dense&quot;, &quot;column dense&quot;);
</span><ins>+    checkGridAutoFlowSetJSValue(&quot;dense&quot;, &quot;row dense&quot;, &quot;row dense&quot;);
</ins><span class="cx">     checkGridAutoFlowSetJSValue(&quot;row dense&quot;, &quot;row dense&quot;, &quot;row dense&quot;);
</span><span class="cx">     checkGridAutoFlowSetJSValue(&quot;dense column&quot;, &quot;column dense&quot;, &quot;column dense&quot;);
</span><span class="cx">     checkGridAutoFlowSetJSValue(&quot;dense row&quot;, &quot;row dense&quot;, &quot;row dense&quot;);
</span><span class="cx">     checkGridAutoFlowSetJSValue(&quot;row&quot;, &quot;row&quot;, &quot;row&quot;);
</span><del>-    checkGridAutoFlowSetJSValue(&quot;stack&quot;, &quot;row stack&quot;, &quot;row stack&quot;);
-    checkGridAutoFlowSetJSValue(&quot;stack column&quot;, &quot;column stack&quot;, &quot;column stack&quot;);
-    checkGridAutoFlowSetJSValue(&quot;stack row&quot;, &quot;row stack&quot;, &quot;row stack&quot;);
-    checkGridAutoFlowSetJSValue(&quot;column stack&quot;, &quot;column stack&quot;, &quot;column stack&quot;);
-    checkGridAutoFlowSetJSValue(&quot;row stack&quot;, &quot;row stack&quot;, &quot;row stack&quot;);
</del><span class="cx"> 
</span><span class="cx">     debug(&quot;&quot;);
</span><span class="cx">     debug(&quot;Test getting and setting bad values for -webkit-grid-auto-flow through JS&quot;);
</span><span class="cx">     checkGridAutoFlowSetJSValue(&quot;noone&quot;, &quot;&quot;, &quot;row&quot;);
</span><del>-    checkGridAutoFlowSetJSValue(&quot;dense&quot;, &quot;&quot;, &quot;row&quot;);
</del><span class="cx">     checkGridAutoFlowSetJSValue(&quot;column column&quot;, &quot;&quot;, &quot;row&quot;);
</span><del>-    checkGridAutoFlowSetJSValue(&quot;dense column stack&quot;, &quot;&quot;, &quot;row&quot;);
-    checkGridAutoFlowSetJSValue(&quot;dense row stack&quot;, &quot;&quot;, &quot;row&quot;);
-    checkGridAutoFlowSetJSValue(&quot;stack row row&quot;, &quot;&quot;, &quot;row&quot;);
</del><ins>+    checkGridAutoFlowSetJSValue(&quot;dense row row&quot;, &quot;&quot;, &quot;row&quot;);
</ins><span class="cx"> 
</span><span class="cx">     debug(&quot;&quot;);
</span><span class="cx">     debug(&quot;Test setting -webkit-grid-auto-flow to 'initial' through JS&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridautoflowupdatehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-update.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-update.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-auto-flow-update.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx">     checkLayout(&quot;.grid&quot;);
</span><span class="cx"> 
</span><span class="cx">     testGrid(&quot;column&quot;, { 'offsetX': '0', 'offsetY': '50', 'width': '50', 'height': '100' });
</span><del>-    testGrid(&quot;stack&quot;, { 'offsetX': '0', 'offsetY': '0', 'width': '50', 'height': '50' });
</del><ins>+    testGrid(&quot;dense&quot;, { 'offsetX': '50', 'offsetY': '0', 'width': '100', 'height': '50' });
</ins><span class="cx">     testGrid(&quot;&quot;, { 'offsetX': '50', 'offsetY': '0', 'width': '100', 'height': '50' });
</span><span class="cx">     testGrid(&quot;invalid&quot;, { 'offsetX': '50', 'offsetY': '0', 'width': '100', 'height': '50' });
</span><span class="cx">     testGrid(&quot;none&quot;, { 'offsetX': '50', 'offsetY': '0', 'width': '100', 'height': '50' });
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemnamedgridarearesolutionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-named-grid-area-resolution.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-named-grid-area-resolution.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-named-grid-area-resolution.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;/&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    -webkit-grid-template-rows: (before) 50px (middle) 100px (after);
</del><ins>+    -webkit-grid-template-rows: (before) 50px (middle) 100px (after) 150px;
</ins><span class="cx">     -webkit-grid-template-columns: 40px 80px 160px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that we resolve named grid areas per the specification.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid gridWithoutRepeat gridAutoFlowStack&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridWithoutRepeat&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;sizedToGridArea gridItemSixthArea&quot; data-offset-x=&quot;120&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;sizedToGridArea gridItemFifthArea&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;sizedToGridArea gridItemFourthArea&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -73,10 +73,10 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid gridWithRepeat gridAutoFlowStack&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridWithRepeat&quot;&gt;
</ins><span class="cx">         &lt;!-- fifth and sixth are invalid named grid areas. --&gt;
</span><del>-        &lt;div class=&quot;sizedToGridArea gridItemSixthArea&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;sizedToGridArea gridItemFifthArea&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;sizedToGridArea gridItemSixthArea&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;sizedToGridArea gridItemFifthArea&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> 
</span><span class="cx">         &lt;div class=&quot;sizedToGridArea gridItemFourthArea&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;sizedToGridArea gridItemThirdArea&quot; data-offset-x=&quot;120&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemzindexchangerepainthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-change-repaint.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -7,7 +7,6 @@
</span><span class="cx">     -webkit-grid-template-rows: 100px;
</span><span class="cx">     -webkit-grid-template-columns: 200px;
</span><span class="cx">     margin-top: 10px;
</span><del>-    -webkit-grid-auto-flow: stack;
</del><span class="cx"> }
</span><span class="cx"> .red {
</span><span class="cx">     background-color: red;
</span><span class="lines">@@ -42,18 +41,18 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;item1&quot; class=&quot;sizedToGridArea green negativeZIndex&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea red&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div id=&quot;item1&quot; class=&quot;sizedToGridArea green negativeZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea red firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;item2&quot; class=&quot;sizedToGridArea green&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea red&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div id=&quot;item2&quot; class=&quot;sizedToGridArea green firstRowFirstColumn&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea red firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div id=&quot;grid3&quot;&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea green&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;item3&quot; class=&quot;red negativeZIndex&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea green firstRowFirstColumn&quot;&gt;&lt;/div&gt;
+    &lt;div id=&quot;item3&quot; class=&quot;red negativeZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemzindexstackingcontexthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -7,7 +7,6 @@
</span><span class="cx">     -webkit-grid-template-rows: 100px;
</span><span class="cx">     -webkit-grid-template-columns: 200px 200px;
</span><span class="cx">     margin-top: 10px;
</span><del>-    -webkit-grid-auto-flow: stack;
</del><span class="cx"> }
</span><span class="cx"> .red {
</span><span class="cx">     background-color: red;
</span><span class="lines">@@ -28,13 +27,13 @@
</span><span class="cx"> &lt;p&gt;For this test to pass, there should be no red below.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea green positiveZIndex&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea red&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea green positiveZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea red firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea green&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea red negativeZIndex&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea green firstRowFirstColumn&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea red negativeZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridshorthandgetsetexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set-expected.txt        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -4,12 +4,12 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> Test getting the longhand values when shorthand is set through CSS.
</span><del>-PASS window.getComputedStyle(gridWithStack, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithStack, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithStack, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithStack, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row stack&quot;
-PASS window.getComputedStyle(gridWithStack, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
-PASS window.getComputedStyle(gridWithStack, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
</del><ins>+PASS window.getComputedStyle(gridWithDense, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithDense, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithDense, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithDense, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row dense&quot;
+PASS window.getComputedStyle(gridWithDense, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
+PASS window.getComputedStyle(gridWithDense, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-template-columns') is &quot;15px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-template-rows') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithTemplate, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span><span class="lines">@@ -28,24 +28,24 @@
</span><span class="cx"> PASS window.getComputedStyle(gridWithTemplateNone, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithTemplateNone, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithTemplateNone, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
</span><del>-PASS window.getComputedStyle(gridWithAutoFlowStackAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row stack&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;20px&quot;
</del><ins>+PASS window.getComputedStyle(gridWithAutoFlowDenseAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDenseAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDenseAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDenseAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row dense&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDenseAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDenseAndColumnsAndRows, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;20px&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;column&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumns, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
</span><del>-PASS window.getComputedStyle(gridWithAutoFlowStack, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStack, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStack, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStack, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row stack&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStack, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStack, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
</del><ins>+PASS window.getComputedStyle(gridWithAutoFlowDense, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDense, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDense, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDense, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row dense&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDense, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
+PASS window.getComputedStyle(gridWithAutoFlowDense, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
</ins><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowColumnDense, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span><span class="lines">@@ -58,18 +58,6 @@
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row dense&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowDenseRow, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
</span><del>-PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;column stack&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
-PASS window.getComputedStyle(gridWithAutoFlowStackColumn, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
-PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row stack&quot;
-PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;10px&quot;
-PASS window.getComputedStyle(gridWithAutoFlowRowStack, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;10px&quot;
</del><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithAutoFlowAndColumnsAndRows, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span><span class="lines">@@ -120,12 +108,6 @@
</span><span class="cx"> PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithMisplacedDense, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
</span><del>-PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
-PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('-webkit-grid-auto-flow') is &quot;row&quot;
-PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('-webkit-grid-auto-columns') is &quot;auto&quot;
-PASS window.getComputedStyle(gridWithMisplacedStack, '').getPropertyValue('-webkit-grid-auto-rows') is &quot;auto&quot;
</del><span class="cx"> PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-template-columns') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-template-rows') is &quot;none&quot;
</span><span class="cx"> PASS window.getComputedStyle(gridWithWrongSlash1, '').getPropertyValue('-webkit-grid-template-areas') is &quot;none&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridshorthandgetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-shorthand-get-set.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -3,8 +3,8 @@
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-#gridWithStack {
-    -webkit-grid: stack;
</del><ins>+#gridWithDense {
+    -webkit-grid: dense;
</ins><span class="cx"> }
</span><span class="cx"> #gridWithTemplate {
</span><span class="cx">     -webkit-grid: 15px / 10px;
</span><span class="lines">@@ -15,14 +15,14 @@
</span><span class="cx"> #gridWithTemplateNone {
</span><span class="cx">     -webkit-grid: none / 10px;
</span><span class="cx"> }
</span><del>-#gridWithAutoFlowStackAndColumnsAndRows {
-    -webkit-grid: stack 10px / 20px;
</del><ins>+#gridWithAutoFlowDenseAndColumnsAndRows {
+    -webkit-grid: dense 10px / 20px;
</ins><span class="cx"> }
</span><span class="cx"> #gridWithAutoFlowAndColumns {
</span><span class="cx">     -webkit-grid: column 10px;
</span><span class="cx"> }
</span><del>-#gridWithAutoFlowStack {
-    -webkit-grid: stack 10px;
</del><ins>+#gridWithAutoFlowDense {
+    -webkit-grid: dense 10px;
</ins><span class="cx"> }
</span><span class="cx"> #gridWithAutoFlowColumnDense {
</span><span class="cx">     -webkit-grid: column dense 10px;
</span><span class="lines">@@ -30,12 +30,6 @@
</span><span class="cx"> #gridWithAutoFlowDenseRow {
</span><span class="cx">     -webkit-grid: dense row 10px;
</span><span class="cx"> }
</span><del>-#gridWithAutoFlowStackColumn {
-    -webkit-grid: stack column 10px;
-}
-#gridWithAutoFlowRowStack {
-    -webkit-grid: row stack 10px;
-}
</del><span class="cx"> #gridWithAutoFlowAndColumnsAndRows {
</span><span class="cx">     -webkit-grid: column 10px / 20px;
</span><span class="cx"> }
</span><span class="lines">@@ -93,23 +87,18 @@
</span><span class="cx"> #gridWithMisplacedDense {
</span><span class="cx">     -webkit-grid: dense column dense;
</span><span class="cx"> }
</span><del>-#gridWithMisplacedStack {
-    -webkit-grid: stack row stack;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;gridWithStack&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridWithDense&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithTemplate&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithTemplate1&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowStackAndColumnsAndRows&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowDenseAndColumnsAndRows&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowAndColumns&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowStack&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowDense&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowColumnDense&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowDenseRow&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowStackColumn&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowRowStack&quot;&gt;&lt;/div&gt;
</del><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithAutoFlowAndColumnsAndRows&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithNone&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithTemplateNone&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -129,23 +118,20 @@
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithTemplateAndAutoFlow&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithTemplateAndMisplacedString1&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridWithMisplacedDense&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;gridWithMisplacedStack&quot;&gt;&lt;/div&gt;
</del><span class="cx"> &lt;script src=&quot;resources/grid-shorthand-parsing-utils.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="cx">     description(&quot;This test checks that the 'grid' shorthand is properly parsed and the longhand properties correctly assigned.&quot;);
</span><span class="cx"> 
</span><span class="cx">     debug(&quot;Test getting the longhand values when shorthand is set through CSS.&quot;);
</span><del>-    testGridDefinitionsValues(document.getElementById(&quot;gridWithStack&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row stack&quot;, &quot;auto&quot;, &quot;auto&quot;);
</del><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridWithDense&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row dense&quot;, &quot;auto&quot;, &quot;auto&quot;);
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplate&quot;), &quot;15px&quot;, &quot;10px&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplate1&quot;), &quot;none&quot;, &quot;10px&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithTemplateNone&quot;), &quot;none&quot;, &quot;10px&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><del>-    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowStackAndColumnsAndRows&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row stack&quot;, &quot;10px&quot;, &quot;20px&quot;);
</del><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowDenseAndColumnsAndRows&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row dense&quot;, &quot;10px&quot;, &quot;20px&quot;);
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowAndColumns&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column&quot;, &quot;10px&quot;, &quot;10px&quot;);
</span><del>-    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowStack&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row stack&quot;, &quot;10px&quot;, &quot;10px&quot;);
</del><ins>+    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowDense&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row dense&quot;, &quot;10px&quot;, &quot;10px&quot;);
</ins><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowColumnDense&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column dense&quot;, &quot;10px&quot;, &quot;10px&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowDenseRow&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row dense&quot;, &quot;10px&quot;, &quot;10px&quot;);
</span><del>-    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowStackColumn&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column stack&quot;, &quot;10px&quot;, &quot;10px&quot;);
-    testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowRowStack&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row stack&quot;, &quot;10px&quot;, &quot;10px&quot;);
</del><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithAutoFlowAndColumnsAndRows&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;column&quot;, &quot;10px&quot;, &quot;20px&quot;);
</span><span class="cx"> 
</span><span class="cx">     debug(&quot;&quot;);
</span><span class="lines">@@ -157,7 +143,6 @@
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithMisplacedNone1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithMisplacedNone2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithMisplacedDense&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><del>-    testGridDefinitionsValues(document.getElementById(&quot;gridWithMisplacedStack&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</del><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithWrongSlash1&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithWrongSlash2&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span><span class="cx">     testGridDefinitionsValues(document.getElementById(&quot;gridWithWrongSlash3&quot;), &quot;none&quot;, &quot;none&quot;, &quot;none&quot;, &quot;row&quot;, &quot;auto&quot;, &quot;auto&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutnamedgridlineswithnamedgridareasdynamicgetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-dynamic-get-set.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -10,7 +10,7 @@
</span><span class="cx">     var gridContainer = document.getElementById(&quot;gridContainer&quot;);
</span><span class="cx">     var gridElement = document.createElement(&quot;div&quot;);
</span><span class="cx">     gridElement.className = &quot;grid&quot;;
</span><del>-    gridElement.style.webkitGridAutoFlow = &quot;stack&quot;;
</del><ins>+    gridElement.style.webkitGridAutoFlow = &quot;dense&quot;;
</ins><span class="cx"> 
</span><span class="cx">     for (var key in gridDefinitions) {
</span><span class="cx">         if (key == &quot;rows&quot;)
</span><span class="lines">@@ -62,14 +62,14 @@
</span><span class="cx">     // Check grid area resolution.
</span><span class="cx">     var gridAreasItems = [ { 'column': 'd', 'x': '150', 'y': '0', 'width': '200', 'height': '50' },
</span><span class="cx">                            { 'column': 'c', 'x': '0', 'y': '0', 'width': '50', 'height': '50' },
</span><del>-                           { 'column': 'a', 'x': '50', 'y': '0', 'width': '300', 'height': '50' }];
</del><ins>+                           { 'column': 'a', 'x': '50', 'y': '50', 'width': '300', 'height': '100' }];
</ins><span class="cx"> 
</span><span class="cx">     testLayout({ 'columns': columnNoNames, 'rows': rowNoNames, 'areas': templateAreaOne }, gridAreasItems);
</span><span class="cx">     testLayout({ 'areas': templateAreaOne, 'columns': columnNoNames, 'rows': rowNoNames }, gridAreasItems);
</span><span class="cx">     testLayout({ 'columns': columnNoNames, 'areas': templateAreaOne, 'rows': rowNoNames }, gridAreasItems);
</span><span class="cx"> 
</span><span class="cx">     var gridAreasItemsTwo = [ { 'column': 'd', 'x': '50', 'y': '0', 'width': '300', 'height': '50' },
</span><del>-                              { 'column': 'c', 'x': '150', 'y': '0', 'width': '200', 'height': '50' },
</del><ins>+                              { 'column': 'c', 'x': '150', 'y': '50', 'width': '200', 'height': '100' },
</ins><span class="cx">                               { 'column': 'a', 'x': '0', 'y': '0', 'width': '50', 'height': '50' }];
</span><span class="cx"> 
</span><span class="cx">     testLayout({ 'areas': templateAreaTwo, 'areas': templateAreaOne, 'columns': columnNoNames, 'rows': rowNoNames }, gridAreasItems);
</span><span class="lines">@@ -100,18 +100,18 @@
</span><span class="cx">     testLayout({ 'columns': columnNoNames, 'rows': rowNoNames, 'areas': templateAreaOne, 'areas': templateAreaTwo }, implicitNamesItemsTwo);
</span><span class="cx"> 
</span><span class="cx">     // Check resolution when named lines are defined before the grid area.
</span><del>-    var itemsBeforeArea = [ { 'column': 'd', 'x': '50', 'y': '0', 'width': '300', 'height': '50' },
-                            { 'row': 'c', 'x': '0', 'y': '0', 'width': '50', 'height': '150'},
-                            { 'column': 'd-start', 'x': '50', 'y': '0', 'width': '100', 'height': '50' },
</del><ins>+    var itemsBeforeArea = [ { 'column': 'd', 'x': '50', 'y': '150', 'width': '300', 'height': '200' },
+                            { 'row': 'c', 'x': '50', 'y': '0', 'width': '100', 'height': '150'},
+                            { 'column': 'd-start', 'x': '50', 'y': '350', 'width': '100', 'height': '0' },
</ins><span class="cx">                             { 'column': 'a-start', 'row': 'd', 'x': '0', 'y': '50', 'width': '50', 'height': '300' } ];
</span><span class="cx"> 
</span><span class="cx">     testLayout({ 'columns': columnNamedLineBeforeArea, 'rows': rowNamedLineBeforeArea, 'areas': templateAreaOne }, itemsBeforeArea);
</span><span class="cx">     testLayout({ 'areas': templateAreaOne, 'columns': columnNamedLineBeforeArea, 'rows': rowNamedLineBeforeArea }, itemsBeforeArea);
</span><span class="cx">     testLayout({ 'columns': columnNamedLineBeforeArea, 'areas': templateAreaOne, 'rows': rowNamedLineBeforeArea }, itemsBeforeArea);
</span><span class="cx"> 
</span><del>-    var itemsBeforeAreaTwo = [ { 'column': 'd', 'x': '50', 'y': '0', 'width': '300', 'height': '50' },
-                               { 'row': 'c', 'x': '0', 'y': '0', 'width': '50', 'height': '350'},
-                               { 'column': 'd-start', 'x': '50', 'y': '0', 'width': '100', 'height': '50' },
</del><ins>+    var itemsBeforeAreaTwo = [ { 'column': 'd', 'x': '50', 'y': '350', 'width': '300', 'height': '0' },
+                               { 'row': 'c', 'x': '50', 'y': '0', 'width': '100', 'height': '350'},
+                               { 'column': 'd-start', 'x': '50', 'y': '350', 'width': '100', 'height': '0' },
</ins><span class="cx">                                { 'column': 'a-start', 'row': 'd', 'x': '0', 'y': '0', 'width': '50', 'height': '150' } ];
</span><span class="cx"> 
</span><span class="cx">     testLayout({ 'areas': templateAreaTwo, 'areas': templateAreaOne, 'columns': columnNamedLineBeforeArea, 'rows': rowNamedLineBeforeArea }, itemsBeforeArea);
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutnamedgridlineswithnamedgridareasresolutionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/fast/css-grid-layout/named-grid-lines-with-named-grid-areas-resolution.html        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -60,10 +60,10 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Check positioning using unique grid-line names --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-  &lt;div class=&quot;grid gridUniqueNames gridAutoFlowStack&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid gridUniqueNames&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: b;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: e;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: b-start;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: b-start;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: g-start;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -88,11 +88,11 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Check that without named gridAreas there are no implicit grid-line names defined --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-  &lt;div class=&quot;grid gridUniqueNames gridAutoFlowStack&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid gridUniqueNames&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: c-start;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: f-start;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: c-start; -webkit-grid-row: f-end&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: b-end; -webkit-grid-row: h-start&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: f-start;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: c-start; -webkit-grid-row: f-end&quot; data-offset-x=&quot;150&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: b-end; -webkit-grid-row: h-start&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -116,8 +116,8 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-  &lt;div class=&quot;grid gridAreas gridNoLineNames gridAutoFlowStack&quot;&gt;
-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+  &lt;div class=&quot;grid gridAreas gridNoLineNames&quot;&gt;
+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: a;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a; -webkit-grid-row: a;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="lines">@@ -150,11 +150,11 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Use explicitly named grid lines if they're defined before the grid area --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-  &lt;div class=&quot;grid gridAreas gridWithNamedLineBeforeGridArea gridAutoFlowStack&quot;&gt;
-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: d;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+  &lt;div class=&quot;grid gridAreas gridWithNamedLineBeforeGridArea&quot;&gt;
+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: d;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: d;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: c;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: c;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: c;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;350&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: c;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</ins><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -166,9 +166,9 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-  &lt;div class=&quot;grid gridAreas gridWithNamedLineBeforeGridArea gridAutoFlowStack&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid gridAreas gridWithNamedLineBeforeGridArea&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;350&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: d;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: d;&quot; data-offset-x=&quot;350&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;0&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a; -webkit-grid-row: d;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;350&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -204,10 +204,10 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Check behavior with areas named *-start or *-end --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-  &lt;div class=&quot;grid gridAreasSpecial gridNoLineNames gridAutoFlowStack&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid gridAreasSpecial gridNoLineNames&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</span><del>-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: a;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a; -webkit-grid-row: a;&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-row: a;&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;sizedToGridArea&quot; style=&quot;-webkit-grid-column: a; -webkit-grid-row: a;&quot; data-offset-x=&quot;150&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
</ins><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsietestcentercss3gridgridcolumn001htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ietestcenter/css3/grid/grid-column-001.htm (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ietestcenter/css3/grid/grid-column-001.htm        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/ietestcenter/css3/grid/grid-column-001.htm        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -74,13 +74,26 @@
</span><span class="cx">                 -webkit-grid-row: 1;
</span><span class="cx">                 grid-row: 1;
</span><span class="cx">             }
</span><ins>+            #row1column1
+            {
+                -ms-grid-column: 1;
+                -moz-grid-column: 1;
+                -o-grid-column: 1;
+                -webkit-grid-column: 1;
+                grid-column: 1;
+                -ms-grid-row: 1;
+                -moz-grid-row: 1;
+                -o-grid-row: 1;
+                -webkit-grid-row: 1;
+                grid-row: 1;
+            }
</ins><span class="cx">         &lt;/style&gt;
</span><span class="cx">     &lt;/head&gt;
</span><span class="cx">     &lt;body&gt;
</span><span class="cx">         &lt;p&gt;Test passes if there is no red visible on the page.&lt;/p&gt;
</span><span class="cx">         &lt;div id=&quot;test&quot;&gt;
</span><span class="cx">             &lt;div id=&quot;griditem&quot;&gt;XXXX&lt;/div&gt;
</span><del>-            &lt;div&gt;XXXXX&lt;/div&gt;
</del><ins>+            &lt;div id=&quot;row1column1&quot;&gt;XXXXX&lt;/div&gt;
</ins><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsietestcentercss3gridgridcolumn002htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ietestcenter/css3/grid/grid-column-002.htm (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ietestcenter/css3/grid/grid-column-002.htm        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/ietestcenter/css3/grid/grid-column-002.htm        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -34,15 +34,22 @@
</span><span class="cx">         &lt;meta name=&quot;flags&quot; content=&quot;ahem invalid&quot; /&gt;
</span><span class="cx">         &lt;meta name=&quot;assert&quot; content=&quot;The 'grid-column' with a value of '0' is invalid and inserts the grid-item in the first column.&quot; /&gt;
</span><span class="cx">         &lt;style type=&quot;text/css&quot;&gt;
</span><ins>+            #container
+            {
+                position: relative;
+                color: green;
+                font: 20px/1 ahem;
+            }
</ins><span class="cx">             #test
</span><span class="cx">             {
</span><del>-                color: green;
</del><ins>+                position: absolute;
+                left: 0;
+                top: 0;
</ins><span class="cx">                 display: -ms-grid;
</span><span class="cx">                 display: -moz-grid;
</span><span class="cx">                 display: -o-grid;
</span><span class="cx">                 display: -webkit-grid;
</span><span class="cx">                 display: grid;
</span><del>-                font: 20px/1 ahem;
</del><span class="cx">                 height: 3em;
</span><span class="cx">                 -ms-grid-columns: auto 1fr;
</span><span class="cx">                 -moz-grid-columns: auto 1fr;
</span><span class="lines">@@ -74,13 +81,20 @@
</span><span class="cx">                 -webkit-grid-row: 1;
</span><span class="cx">                 grid-row: 1;
</span><span class="cx">             }
</span><ins>+            #absolute {
+                position: absolute;
+                left: 0;
+                top: 0;
+            }
</ins><span class="cx">         &lt;/style&gt;
</span><span class="cx">     &lt;/head&gt;
</span><span class="cx">     &lt;body&gt;
</span><span class="cx">         &lt;p&gt;Test passes if there is no red visible on the page.&lt;/p&gt;
</span><del>-        &lt;div id=&quot;test&quot;&gt;
-            &lt;div id=&quot;griditem&quot;&gt;XXXX&lt;/div&gt;
-            &lt;div&gt;XXXXX&lt;/div&gt;
</del><ins>+        &lt;div id=&quot;container&quot;&gt;
+            &lt;div id=&quot;test&quot;&gt;
+                &lt;div id=&quot;griditem&quot;&gt;XXXX&lt;/div&gt;
+            &lt;/div&gt;
+            &lt;div id=&quot;absolute&quot;&gt;XXXXX&lt;/div&gt;
</ins><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsietestcentercss3gridgridcolumn003htm"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ietestcenter/css3/grid/grid-column-003.htm (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ietestcenter/css3/grid/grid-column-003.htm        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/LayoutTests/ietestcenter/css3/grid/grid-column-003.htm        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -74,6 +74,19 @@
</span><span class="cx">                 -webkit-grid-row: 1;
</span><span class="cx">                 grid-row: 1;
</span><span class="cx">             }
</span><ins>+            #row1column1
+            {
+                -ms-grid-column: 1;
+                -moz-grid-column: 1;
+                -o-grid-column: 1;
+                -webkit-grid-column: 1;
+                grid-column: 1;
+                -ms-grid-row: 1;
+                -moz-grid-row: 1;
+                -o-grid-row: 1;
+                -webkit-grid-row: 1;
+                grid-row: 1;
+            }
</ins><span class="cx">             span
</span><span class="cx">             {
</span><span class="cx">                 color: red;
</span><span class="lines">@@ -83,7 +96,7 @@
</span><span class="cx">     &lt;body&gt;
</span><span class="cx">         &lt;p&gt;Test passes if there is no red visible on the page.&lt;/p&gt;
</span><span class="cx">         &lt;div id=&quot;test&quot;&gt;
</span><del>-            &lt;div&gt;&lt;span&gt;XX&lt;/span&gt;X&lt;span&gt;XX&lt;/span&gt;&lt;/div&gt;
</del><ins>+            &lt;div id=&quot;row1column1&quot;&gt;&lt;span&gt;XX&lt;/span&gt;X&lt;span&gt;XX&lt;/span&gt;&lt;/div&gt;
</ins><span class="cx">             &lt;div id=&quot;griditem&quot;&gt;XX XX&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/body&gt;
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/ChangeLog        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -1,3 +1,39 @@
</span><ins>+2015-01-02  Manuel Rego Casasnovas  &lt;rego@igalia.com&gt;
+
+        [CSS Grid Layout] Remove stack from grid-auto-flow syntax
+        https://bugs.webkit.org/show_bug.cgi?id=134842
+
+        Reviewed by Sergio Villar Senin.
+
+        &quot;stack&quot; mode for grid-auto-flow property has been removed from the grid
+        layout spec. New syntax is:
+          [ row | column ] || dense
+
+        Modified parsing in order to adapt it to the new syntax.
+
+        Also the current behavior relying on &quot;stack&quot; has been updated following
+        the spec. Now it won't be possible to mimic the old &quot;none&quot; (or &quot;stack&quot;)
+        unless you specify manually the grid-placement properties.
+
+        No new tests needed, updated current tests to adapt them to the new
+        behavior.
+
+        * css/CSSComputedStyleDeclaration.cpp:
+        (WebCore::ComputedStyleExtractor::propertyValue): Adapt to new syntax.
+        * css/CSSParser.cpp:
+        (WebCore::isValidGridAutoFlowId): Remove &quot;stack&quot; from valid ids.
+        (WebCore::CSSParser::parseGridAutoFlow): Adapt to new syntax.
+        * css/CSSValueKeywords.in: Remove &quot;stack&quot;.
+        * css/StyleResolver.cpp:
+        (WebCore::StyleResolver::applyProperty): Adapt to new syntax.
+        * rendering/RenderGrid.cpp:
+        (WebCore::RenderGrid::placeItemsOnGrid): Remove old &quot;stack&quot; code.
+        * rendering/style/GridResolvedPosition.cpp:
+        (WebCore::GridResolvedPosition::resolveGridPositionsFromStyle): If we
+        cannot resolve positions, we have to run the auto-placement algorithm.
+        * rendering/style/RenderStyle.h: Remove &quot;stack&quot;.
+        * rendering/style/RenderStyleConstants.h: Ditto.
+
</ins><span class="cx"> 2015-01-01  Sam Weinig  &lt;sam@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove GroupSettings
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSComputedStyleDeclarationcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -2190,8 +2190,6 @@
</span><span class="cx"> 
</span><span class="cx">             if (style-&gt;isGridAutoFlowAlgorithmDense())
</span><span class="cx">                 list-&gt;append(cssValuePool().createIdentifierValue(CSSValueDense));
</span><del>-            else if (style-&gt;isGridAutoFlowAlgorithmStack())
-                list-&gt;append(cssValuePool().createIdentifierValue(CSSValueStack));
</del><span class="cx"> 
</span><span class="cx">             return list.release();
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSParser.cpp (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSParser.cpp        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/css/CSSParser.cpp        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -5416,12 +5416,12 @@
</span><span class="cx"> 
</span><span class="cx"> static inline bool isValidGridAutoFlowId(CSSValueID id)
</span><span class="cx"> {
</span><del>-    return (id == CSSValueRow || id == CSSValueColumn || id == CSSValueDense || id == CSSValueStack);
</del><ins>+    return (id == CSSValueRow || id == CSSValueColumn || id == CSSValueDense);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> PassRefPtr&lt;CSSValue&gt; CSSParser::parseGridAutoFlow(CSSParserValueList&amp; inputList)
</span><span class="cx"> {
</span><del>-    // [ row | column ] &amp;&amp; dense? | stack &amp;&amp; [ row | column ]?
</del><ins>+    // [ row | column ] || dense
</ins><span class="cx">     CSSParserValue* value = inputList.current();
</span><span class="cx">     if (!value)
</span><span class="cx">         return nullptr;
</span><span class="lines">@@ -5438,9 +5438,6 @@
</span><span class="cx">     value = inputList.next();
</span><span class="cx">     if (!value || !isValidGridAutoFlowId(value-&gt;id)) {
</span><span class="cx">         if (firstId == CSSValueDense)
</span><del>-            return nullptr;
-
-        if (firstId == CSSValueStack)
</del><span class="cx">             parsedValues-&gt;append(cssValuePool().createIdentifierValue(CSSValueRow));
</span><span class="cx"> 
</span><span class="cx">         parsedValues-&gt;append(cssValuePool().createIdentifierValue(firstId));
</span><span class="lines">@@ -5451,13 +5448,12 @@
</span><span class="cx">     case CSSValueRow:
</span><span class="cx">     case CSSValueColumn:
</span><span class="cx">         parsedValues-&gt;append(cssValuePool().createIdentifierValue(firstId));
</span><del>-        if (value-&gt;id == CSSValueDense || value-&gt;id == CSSValueStack) {
</del><ins>+        if (value-&gt;id == CSSValueDense) {
</ins><span class="cx">             parsedValues-&gt;append(cssValuePool().createIdentifierValue(value-&gt;id));
</span><span class="cx">             inputList.next();
</span><span class="cx">         }
</span><span class="cx">         break;
</span><span class="cx">     case CSSValueDense:
</span><del>-    case CSSValueStack:
</del><span class="cx">         if (value-&gt;id == CSSValueRow || value-&gt;id == CSSValueColumn) {
</span><span class="cx">             parsedValues-&gt;append(cssValuePool().createIdentifierValue(value-&gt;id));
</span><span class="cx">             inputList.next();
</span></span></pre></div>
<a id="trunkSourceWebCorecssCSSValueKeywordsin"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/CSSValueKeywords.in (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/CSSValueKeywords.in        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/css/CSSValueKeywords.in        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -1076,7 +1076,6 @@
</span><span class="cx"> 
</span><span class="cx"> // -webkit-grid-auto-flow
</span><span class="cx"> dense
</span><del>-stack
</del><span class="cx"> 
</span><span class="cx"> #if defined(ENABLE_CSS3_TEXT) &amp;&amp; ENABLE_CSS3_TEXT
</span><span class="cx"> // text-indent
</span></span></pre></div>
<a id="trunkSourceWebCorecssStyleResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/StyleResolver.cpp (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/StyleResolver.cpp        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/css/StyleResolver.cpp        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -2762,14 +2762,14 @@
</span><span class="cx">         GridAutoFlow autoFlow = RenderStyle::initialGridAutoFlow();
</span><span class="cx">         switch (first.getValueID()) {
</span><span class="cx">         case CSSValueRow:
</span><del>-            if (second)
-                autoFlow = second-&gt;getValueID() == CSSValueDense ? AutoFlowRowDense : AutoFlowStackRow;
</del><ins>+            if (second &amp;&amp; second-&gt;getValueID() == CSSValueDense)
+                autoFlow =  AutoFlowRowDense;
</ins><span class="cx">             else
</span><span class="cx">                 autoFlow = AutoFlowRow;
</span><span class="cx">             break;
</span><span class="cx">         case CSSValueColumn:
</span><del>-            if (second)
-                autoFlow = second-&gt;getValueID() == CSSValueDense ? AutoFlowColumnDense : AutoFlowStackColumn;
</del><ins>+            if (second &amp;&amp; second-&gt;getValueID() == CSSValueDense)
+                autoFlow = AutoFlowColumnDense;
</ins><span class="cx">             else
</span><span class="cx">                 autoFlow = AutoFlowColumn;
</span><span class="cx">             break;
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingRenderGridcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/RenderGrid.cpp (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/RenderGrid.cpp        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/rendering/RenderGrid.cpp        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -743,14 +743,6 @@
</span><span class="cx">     ASSERT(gridRowCount() &gt;= GridResolvedPosition::explicitGridRowCount(style()));
</span><span class="cx">     ASSERT(gridColumnCount() &gt;= GridResolvedPosition::explicitGridColumnCount(style()));
</span><span class="cx"> 
</span><del>-    // FIXME: Implement properly &quot;stack&quot; value in auto-placement algorithm.
-    if (style().isGridAutoFlowAlgorithmStack()) {
-        // If we did collect some grid items, they won't be placed thus never laid out.
-        ASSERT(!autoMajorAxisAutoGridItems.size());
-        ASSERT(!specifiedMajorAxisAutoGridItems.size());
-        return;
-    }
-
</del><span class="cx">     placeSpecifiedMajorAxisItemsOnGrid(specifiedMajorAxisAutoGridItems);
</span><span class="cx">     placeAutoMajorAxisItemsOnGrid(autoMajorAxisAutoGridItems);
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleGridResolvedPositioncpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/GridResolvedPosition.cpp (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/GridResolvedPosition.cpp        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/rendering/style/GridResolvedPosition.cpp        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -135,14 +135,9 @@
</span><span class="cx"> 
</span><span class="cx">     adjustGridPositionsFromStyle(gridContainerStyle, initialPosition, finalPosition, initialPositionSide, finalPositionSide);
</span><span class="cx"> 
</span><del>-    if (initialPosition.shouldBeResolvedAgainstOppositePosition() &amp;&amp; finalPosition.shouldBeResolvedAgainstOppositePosition()) {
-        // FIXME: Implement properly &quot;stack&quot; value in auto-placement algorithm.
-        if (gridContainerStyle.isGridAutoFlowAlgorithmStack())
-            return std::make_unique&lt;GridSpan&gt;(0, 0);
-
-        // We can't get our grid positions without running the auto placement algorithm.
</del><ins>+    // We can't get our grid positions without running the auto placement algorithm.
+    if (initialPosition.shouldBeResolvedAgainstOppositePosition() &amp;&amp; finalPosition.shouldBeResolvedAgainstOppositePosition())
</ins><span class="cx">         return nullptr;
</span><del>-    }
</del><span class="cx"> 
</span><span class="cx">     if (initialPosition.shouldBeResolvedAgainstOppositePosition()) {
</span><span class="cx">         // Infer the position from the final position ('auto / 1' or 'span 2 / 3' case).
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleRenderStyleh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/RenderStyle.h (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/RenderStyle.h        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/rendering/style/RenderStyle.h        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -930,7 +930,6 @@
</span><span class="cx">     bool isGridAutoFlowDirectionColumn() const { return (rareNonInheritedData-&gt;m_grid-&gt;m_gridAutoFlow &amp; InternalAutoFlowDirectionColumn); }
</span><span class="cx">     bool isGridAutoFlowAlgorithmSparse() const { return (rareNonInheritedData-&gt;m_grid-&gt;m_gridAutoFlow &amp; InternalAutoFlowAlgorithmSparse); }
</span><span class="cx">     bool isGridAutoFlowAlgorithmDense() const { return (rareNonInheritedData-&gt;m_grid-&gt;m_gridAutoFlow &amp; InternalAutoFlowAlgorithmDense); }
</span><del>-    bool isGridAutoFlowAlgorithmStack() const { return (rareNonInheritedData-&gt;m_grid-&gt;m_gridAutoFlow &amp; InternalAutoFlowAlgorithmStack); }
</del><span class="cx">     const GridTrackSize&amp; gridAutoColumns() const { return rareNonInheritedData-&gt;m_grid-&gt;m_gridAutoColumns; }
</span><span class="cx">     const GridTrackSize&amp; gridAutoRows() const { return rareNonInheritedData-&gt;m_grid-&gt;m_gridAutoRows; }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorerenderingstyleRenderStyleConstantsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/rendering/style/RenderStyleConstants.h (177857 => 177858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/rendering/style/RenderStyleConstants.h        2015-01-02 05:26:52 UTC (rev 177857)
+++ trunk/Source/WebCore/rendering/style/RenderStyleConstants.h        2015-01-02 10:01:11 UTC (rev 177858)
</span><span class="lines">@@ -604,25 +604,22 @@
</span><span class="cx"> enum RubyPosition { RubyPositionBefore, RubyPositionAfter, RubyPositionInterCharacter };
</span><span class="cx"> 
</span><span class="cx"> #if ENABLE(CSS_GRID_LAYOUT)
</span><del>-static const size_t GridAutoFlowBits = 5;
</del><ins>+static const size_t GridAutoFlowBits = 4;
</ins><span class="cx"> enum InternalGridAutoFlowAlgorithm {
</span><span class="cx">     InternalAutoFlowAlgorithmSparse = 0x1,
</span><span class="cx">     InternalAutoFlowAlgorithmDense = 0x2,
</span><del>-    InternalAutoFlowAlgorithmStack = 0x4
</del><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> enum InternalGridAutoFlowDirection {
</span><del>-    InternalAutoFlowDirectionRow = 0x8,
-    InternalAutoFlowDirectionColumn = 0x10
</del><ins>+    InternalAutoFlowDirectionRow = 0x4,
+    InternalAutoFlowDirectionColumn = 0x8
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> enum GridAutoFlow {
</span><span class="cx">     AutoFlowRow = InternalAutoFlowAlgorithmSparse | InternalAutoFlowDirectionRow,
</span><span class="cx">     AutoFlowColumn = InternalAutoFlowAlgorithmSparse | InternalAutoFlowDirectionColumn,
</span><span class="cx">     AutoFlowRowDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirectionRow,
</span><del>-    AutoFlowColumnDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirectionColumn,
-    AutoFlowStackRow = InternalAutoFlowAlgorithmStack | InternalAutoFlowDirectionRow,
-    AutoFlowStackColumn = InternalAutoFlowAlgorithmStack | InternalAutoFlowDirectionColumn
</del><ins>+    AutoFlowColumnDense = InternalAutoFlowAlgorithmDense | InternalAutoFlowDirectionColumn
</ins><span class="cx"> };
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>