<!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>[140480] trunk/LayoutTests</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/140480">140480</a></dd>
<dt>Author</dt> <dd>jchaffraix@webkit.org</dd>
<dt>Date</dt> <dd>2013-01-22 15:33:18 -0800 (Tue, 22 Jan 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>[CSS Grid Layout] Add grid.css to hold the common grid testing code
https://bugs.webkit.org/show_bug.cgi?id=107044

Reviewed by Tony Chang.

* fast/css-grid-layout/containing-block-grids.html:
Removed 2 bad display: none rules that where overriden by
the inline style declaration.

* fast/css-grid-layout/minmax-fixed-logical-height-only.html:
* fast/css-grid-layout/breadth-size-resolution-grid.html:
* fast/css-grid-layout/calc-resolution-grid-item.html:
* fast/css-grid-layout/display-grid-set-get.html:
* fast/css-grid-layout/grid-columns-rows-get-set-multiple.html:
* fast/css-grid-layout/grid-columns-rows-get-set.html:
* fast/css-grid-layout/grid-element-padding-margin.html:
* fast/css-grid-layout/minmax-fixed-logical-width-only.html:
* fast/css-grid-layout/minmax-min-content-column-resolution-columns.html:
* fast/css-grid-layout/minmax-min-content-column-resolution-rows.html:
* fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html:
* fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html:
* fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html:
* fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html:
* fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html:
* fast/css-grid-layout/percent-resolution-grid-item.html:
* fast/css-grid-layout/place-cell-by-index.html:
Updated all the files above to:
- use grid.css.
- rename 'a', 'b', 'c' and 'd' to more meaningful.
- change the previous ids to be classes as we ended up having several divs with the same id.

* fast/css-grid-layout/resources/grid.css: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutbreadthsizeresolutiongridhtml">trunk/LayoutTests/fast/css-grid-layout/breadth-size-resolution-grid.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutcalcresolutiongriditemhtml">trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutcontainingblockgridshtml">trunk/LayoutTests/fast/css-grid-layout/containing-block-grids.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutdisplaygridsetgethtml">trunk/LayoutTests/fast/css-grid-layout/display-grid-set-get.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcolumnsrowsgetsetmultiplehtml">trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcolumnsrowsgetsethtml">trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridelementpaddingmarginhtml">trunk/LayoutTests/fast/css-grid-layout/grid-element-padding-margin.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutminmaxfixedlogicalheightonlyhtml">trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutminmaxfixedlogicalwidthonlyhtml">trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutminmaxmincontentcolumnresolutioncolumnshtml">trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-columns.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutminmaxmincontentcolumnresolutionrowshtml">trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-rows.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackinpercentgridhtml">trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackupdatehtml">trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackhtml">trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentpaddingmarginresolutiongriditemupdatehtml">trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentpaddingmarginresolutiongriditemhtml">trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentresolutiongriditemhtml">trunk/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutplacecellbyindexhtml">trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssgridlayoutresourcesgridcss">trunk/LayoutTests/fast/css-grid-layout/resources/grid.css</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/ChangeLog        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -1,3 +1,38 @@
</span><ins>+2013-01-22  Julien Chaffraix  &lt;jchaffraix@webkit.org&gt;
+
+        [CSS Grid Layout] Add grid.css to hold the common grid testing code
+        https://bugs.webkit.org/show_bug.cgi?id=107044
+
+        Reviewed by Tony Chang.
+
+        * fast/css-grid-layout/containing-block-grids.html:
+        Removed 2 bad display: none rules that where overriden by
+        the inline style declaration.
+
+        * fast/css-grid-layout/minmax-fixed-logical-height-only.html:
+        * fast/css-grid-layout/breadth-size-resolution-grid.html:
+        * fast/css-grid-layout/calc-resolution-grid-item.html:
+        * fast/css-grid-layout/display-grid-set-get.html:
+        * fast/css-grid-layout/grid-columns-rows-get-set-multiple.html:
+        * fast/css-grid-layout/grid-columns-rows-get-set.html:
+        * fast/css-grid-layout/grid-element-padding-margin.html:
+        * fast/css-grid-layout/minmax-fixed-logical-width-only.html:
+        * fast/css-grid-layout/minmax-min-content-column-resolution-columns.html:
+        * fast/css-grid-layout/minmax-min-content-column-resolution-rows.html:
+        * fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html:
+        * fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html:
+        * fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html:
+        * fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html:
+        * fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html:
+        * fast/css-grid-layout/percent-resolution-grid-item.html:
+        * fast/css-grid-layout/place-cell-by-index.html:
+        Updated all the files above to:
+        - use grid.css.
+        - rename 'a', 'b', 'c' and 'd' to more meaningful.
+        - change the previous ids to be classes as we ended up having several divs with the same id.
+
+        * fast/css-grid-layout/resources/grid.css: Added.
+
</ins><span class="cx"> 2013-01-22  Ojan Vafai  &lt;ojan@chromium.org&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESION(r130774): preferred width of tables does not take max-width into account
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutbreadthsizeresolutiongridhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/breadth-size-resolution-grid.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/breadth-size-resolution-grid.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/breadth-size-resolution-grid.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,49 +4,32 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 100px 10vw;
</span><span class="cx">     -webkit-grid-rows: 10vh 100px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#b {
-    background-color: lime;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowSecondColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#c {
-    background-color: purple;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
</del><ins>+.secondRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
</del><ins>+.secondRowSecondColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-
-.verticalRL {
-    -webkit-writing-mode: vertical-rl;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -54,24 +37,24 @@
</span><span class="cx"> &lt;p&gt;Test that specifying the track breadth sizes works properly with all the allowed length types and in different writing modes.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;100&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 verticalRL&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;80&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;80&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;80&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;80&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;a&quot; class=&quot;verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-     &lt;div id=&quot;b&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-     &lt;div id=&quot;c&quot; class=&quot;verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
-     &lt;div id=&quot;d&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+     &lt;div class=&quot;firstRowFirstColumn&quot; class=&quot;verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+     &lt;div class=&quot;secondRowFirstColumn&quot; class=&quot;verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
+     &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;100&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="trunkLayoutTestsfastcssgridlayoutcalcresolutiongriditemhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,40 +4,15 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 100px 300px;
</span><span class="cx">     -webkit-grid-rows: 50px 150px;
</span><span class="cx">     height: 200px;
</span><span class="cx">     width: 400px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
-}
-
-#b {
-    background-color: lime;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
-}
-
-#c {
-    background-color: purple;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
-}
-
-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
-}
-
</del><span class="cx"> .calcWidth {
</span><span class="cx">     width: -webkit-calc(80% + 20%);
</span><span class="cx">     height: 15px;
</span><span class="lines">@@ -52,10 +27,6 @@
</span><span class="cx">     width: -webkit-calc(80% + 20px);
</span><span class="cx">     height: -webkit-calc(70% + 30%);
</span><span class="cx"> }
</span><del>-
-.verticalRL {
-    -webkit-writing-mode: vertical-rl;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -63,31 +34,31 @@
</span><span class="cx"> &lt;p&gt;Test that resolving calc lengths on grid items works properly on a fixed grid with different writing modes.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;calcWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;calcHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;calcHeightAndWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;calcHeightAndWidth&quot; data-expected-width=&quot;260&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn calcWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn calcHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn calcHeightAndWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn calcHeightAndWidth&quot; data-expected-width=&quot;260&quot; data-expected-height=&quot;150&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 verticalRL&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;calcWidth&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;calcHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;260&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;calcHeightAndWidth&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;calcHeightAndWidth&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn calcWidth&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn calcHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;260&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn calcHeightAndWidth&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn calcHeightAndWidth&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;300&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;a&quot; class=&quot;calcWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;calcHeight verticalRL&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;calcHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;calcHeightAndWidth verticalRL&quot; data-expected-width=&quot;260&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn calcWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn calcHeight verticalRL&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn calcHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn calcHeightAndWidth verticalRL&quot; data-expected-width=&quot;260&quot; data-expected-height=&quot;150&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;a&quot; class=&quot;calcWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;calcHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;calcHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;calcHeightAndWidth&quot; data-expected-width=&quot;260&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn calcWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn calcHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn calcHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn calcHeightAndWidth&quot; data-expected-width=&quot;260&quot; data-expected-height=&quot;150&quot;&gt;&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="trunkLayoutTestsfastcssgridlayoutcontainingblockgridshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/containing-block-grids.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/containing-block-grids.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/containing-block-grids.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -5,15 +5,16 @@
</span><span class="cx">         if (window.testRunner)
</span><span class="cx">             testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx">     &lt;/script&gt;
</span><ins>+    &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx">     &lt;style&gt;
</span><span class="cx">         div { width: 100px; height: 100px; }
</span><del>-        .relative-positioned-grid { display: none; background-color: red; position:relative; }
-        .relative-positioned-inline-grid { display: none; background-color: red; position: relative; }
</del><ins>+        .relative-positioned-grid { background-color: red; position:relative; }
+        .relative-positioned-inline-grid { background-color: red; position: relative; }
</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;Grids can act as containing blocks for positioned content.&lt;/p&gt;
</span><del>-&lt;div class=&quot;relative-positioned-grid&quot; style=&quot;display: -webkit-grid&quot;&gt;&lt;div style=&quot;background-color: green; left: 0; top: 0&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-&lt;div class=&quot;relative-positioned-inline-grid&quot; style=&quot;display: -webkit-inline-grid&quot;&gt;&lt;div style=&quot;background-color:green; left: 0; top: 0&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;relative-positioned-grid grid&quot;&gt;&lt;div style=&quot;background-color: green; left: 0; top: 0&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+&lt;div class=&quot;relative-positioned-inline-grid inline-grid&quot;&gt;&lt;div style=&quot;background-color:green; left: 0; top: 0&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;/body&gt;
</span><span class="cx"> &lt;/html&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutdisplaygridsetgethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/display-grid-set-get.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/display-grid-set-get.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/display-grid-set-get.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -5,15 +5,12 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><del>-&lt;style&gt;
-.grid { display: -webkit-grid; }
-.inlineGrid { display: -webkit-inline-grid; }
-&lt;/style&gt;
</del><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../js/resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;gridElement&quot;&gt;&lt;/div&gt;
</span><del>-&lt;div class=&quot;inlineGrid&quot; id=&quot;inlineGridElement&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;inline-grid&quot; id=&quot;inlineGridElement&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;script src=&quot;resources/display-grid-set-get.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../js/resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcolumnsrowsgetsetmultiplehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -5,68 +5,57 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .gridWithFixed {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 7px 11px;
</span><span class="cx">     -webkit-grid-rows: 17px 2px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .gridWithPercent {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 53% 99%;
</span><span class="cx">     -webkit-grid-rows: 27% 52%;
</span><span class="cx"> }
</span><span class="cx"> .gridWithAuto {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: auto auto;
</span><span class="cx">     -webkit-grid-rows: auto auto;
</span><span class="cx"> }
</span><span class="cx"> .gridWithEM {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 10em 12em;
</span><span class="cx">     -webkit-grid-rows: 15em 17em;
</span><span class="cx">     font: 10px Ahem;
</span><span class="cx"> }
</span><span class="cx"> .gridWithNoneAndAuto {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: none auto;
</span><span class="cx">     -webkit-grid-rows: none auto;
</span><span class="cx"> }
</span><span class="cx"> .gridNoneWithAndFixed {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: none 15px;
</span><span class="cx">     -webkit-grid-rows: none 22px;
</span><span class="cx"> }
</span><span class="cx"> .gridWithThreeItems {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 15px auto 10em;
</span><span class="cx">     -webkit-grid-rows: 12em 18px auto;
</span><span class="cx">     font: 10px Ahem;
</span><span class="cx"> }
</span><span class="cx"> .gridWithPercentAndViewportPercent {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 50% 15vw;
</span><span class="cx">     -webkit-grid-rows: 35% 28vh;
</span><span class="cx"> }
</span><span class="cx"> .gridWithFitContentAndFitAvailable {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: -webkit-content-available;
</span><span class="cx">     -webkit-grid-rows: -webkit-fitcontent -webkit-fit-available;
</span><span class="cx"> }
</span><span class="cx"> .gridWithMinMaxContent {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: -webkit-min-content -webkit-max-content;
</span><span class="cx">     -webkit-grid-rows: -webkit-max-content -webkit-min-content;
</span><span class="cx"> }
</span><span class="cx"> .gridWithMinMaxAndFixed {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: minmax(45px, 30%) 15px;
</span><span class="cx">     -webkit-grid-rows: 12em minmax(35%, 10px);
</span><span class="cx">     font: 10px Ahem;
</span><span class="cx"> }
</span><span class="cx"> .gridWithMinMaxAndMinMaxContent {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: minmax(-webkit-min-content, 30%) 15px;
</span><span class="cx">     -webkit-grid-rows: 12em minmax(35%, -webkit-max-content);
</span><span class="cx">     font: 10px Ahem;
</span><span class="lines">@@ -75,18 +64,18 @@
</span><span class="cx"> &lt;script src=&quot;../js/resources/js-test-pre.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;gridWithFixed&quot; id=&quot;gridWithFixedElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithPercent&quot; id=&quot;gridWithPercentElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithEM&quot; id=&quot;gridWithEMElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithNoneAndAuto&quot; id=&quot;gridWithNoneAndAuto&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithNoneAndFixed&quot; id=&quot;gridWithNoneAndFixed&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithThreeItems&quot; id=&quot;gridWithThreeItems&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithPercentAndViewportPercent&quot; id=&quot;gridWithPercentAndViewportPercent&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithFitContentAndFitAvailable&quot; id=&quot;gridWithFitContentAndFitAvailable&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithMinMaxContent&quot; id=&quot;gridWithMinMaxContent&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithMinMaxAndFixed&quot; id=&quot;gridWithMinMaxAndFixed&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;gridWithMinMaxAndMinMaxContent&quot; id=&quot;gridWithMinMaxAndMinMaxContent&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid gridWithFixed&quot; id=&quot;gridWithFixedElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithPercent&quot; id=&quot;gridWithPercentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithEM&quot; id=&quot;gridWithEMElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithNoneAndAuto&quot; id=&quot;gridWithNoneAndAuto&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithNoneAndFixed&quot; id=&quot;gridWithNoneAndFixed&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithThreeItems&quot; id=&quot;gridWithThreeItems&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithPercentAndViewportPercent&quot; id=&quot;gridWithPercentAndViewportPercent&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithFitContentAndFitAvailable&quot; id=&quot;gridWithFitContentAndFitAvailable&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithMinMaxContent&quot; id=&quot;gridWithMinMaxContent&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithMinMaxAndFixed&quot; id=&quot;gridWithMinMaxAndFixed&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid gridWithMinMaxAndMinMaxContent&quot; id=&quot;gridWithMinMaxAndMinMaxContent&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;script src=&quot;resources/grid-columns-rows-get-set-multiple.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../js/resources/js-test-post.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/body&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcolumnsrowsgetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -5,10 +5,8 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><del>-.grid {
-    display: -webkit-grid;
-}
</del><span class="cx"> .gridWithNone {
</span><span class="cx">     -webkit-grid-columns: none;
</span><span class="cx">     -webkit-grid-rows: none;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridelementpaddingmarginhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-element-padding-margin.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-element-padding-margin.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-element-padding-margin.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,10 +4,9 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 100px;
</span><span class="cx">     -webkit-grid-rows: 50px;
</span><span class="cx">     /* Force the grid element to be shrink-to-fit. */
</span><span class="lines">@@ -23,10 +22,6 @@
</span><span class="cx">     border-color: green;
</span><span class="cx">     border-width: 10px 20px 30px 40px;
</span><span class="cx"> }
</span><del>-
-.verticalRL {
-    -webkit-writing-mode: vertical-rl;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutminmaxfixedlogicalheightonlyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,10 +4,9 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     width: 100px;
</span><span class="cx">     height: 200px;
</span><span class="cx"> }
</span><span class="lines">@@ -48,22 +47,15 @@
</span><span class="cx">     -webkit-writing-mode: horizontal-bt;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#b {
-    background-color: green;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
</del><ins>+.secondRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -72,33 +64,33 @@
</span><span class="cx"> &lt;p&gt;Checks that a grid element with fixed minmax properly compute the logical height in several writing-mode.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;grid1&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;40&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;160&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;40&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;160&quot; data-expected-width=&quot;30&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; id=&quot;grid2&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;120&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;80&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;120&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;80&quot; data-expected-width=&quot;30&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; id=&quot;grid3&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;90&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;110&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;90&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;110&quot; data-expected-width=&quot;30&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; id=&quot;grid4&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&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; id=&quot;grid5&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;10&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;10&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; id=&quot;grid6&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;90&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;110&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;90&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;110&quot; data-expected-width=&quot;30&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="trunkLayoutTestsfastcssgridlayoutminmaxfixedlogicalwidthonlyhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,10 +4,9 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     width: 100px;
</span><span class="cx">     height: 200px;
</span><span class="cx"> }
</span><span class="lines">@@ -49,22 +48,15 @@
</span><span class="cx">     -webkit-writing-mode: horizontal-bt;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#b {
-    background-color: green;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowSecondColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -73,33 +65,33 @@
</span><span class="cx"> &lt;p&gt;Checks that a grid element with fixed minmax properly compute the logical width in several writing-mode.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot; id=&quot;grid1&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&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; id=&quot;grid2&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&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; id=&quot;grid3&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;50&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; id=&quot;grid4&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;40&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;160&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;40&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;160&quot; data-expected-width=&quot;30&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; id=&quot;grid5&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;100&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;100&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;100&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;100&quot; data-expected-width=&quot;30&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; id=&quot;grid6&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&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="trunkLayoutTestsfastcssgridlayoutminmaxmincontentcolumnresolutioncolumnshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-columns.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-columns.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-columns.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,17 +4,14 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .gridMinMinContent {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: minmax(-webkit-min-content, 40px);
</span><span class="cx">     -webkit-grid-rows: 50px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .gridMaxMinContent {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: minmax(30px, -webkit-min-content);
</span><span class="cx">     -webkit-grid-rows: 20px;
</span><span class="cx"> }
</span><span class="lines">@@ -25,10 +22,7 @@
</span><span class="cx">     height: 10px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     font: 10px/1 Ahem;
</span><span class="cx">     /* Make us fit our grid area. */
</span><span class="cx">     width: 100%;
</span><span class="lines">@@ -41,68 +35,68 @@
</span><span class="cx"> &lt;p&gt;Test that resolving minmax function with min-content on grid items works properly.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;50&quot;&gt;XXX XXX XXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;50&quot;&gt;XXX XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
</ins><span class="cx">         &lt;!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --&gt;
</span><del>-        &lt;div id=&quot;a&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;50&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;50&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Allow the extra logical space distribution to occur. --&gt;
</span><span class="cx"> &lt;div style=&quot;width: 40px; height: 10px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;50&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;50&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;width: 100px; height: 10px;&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
</ins><span class="cx">         &lt;!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --&gt;
</span><del>-        &lt;div id=&quot;a&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;50&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XXX XXX XXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XXX XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Allow the extra logical space distribution to occur. --&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;width: 100px; height: 20px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;20&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;20&quot;&gt;XXXXX XXXXX XXXXX XXXXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;width: 100px; height: 20px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
</ins><span class="cx">         &lt;!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --&gt;
</span><del>-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XX XX XX XX XX XX&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="trunkLayoutTestsfastcssgridlayoutminmaxmincontentcolumnresolutionrowshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-rows.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-rows.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-min-content-column-resolution-rows.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,17 +4,14 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .gridMinMinContent {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 30px;
</span><span class="cx">     -webkit-grid-rows: minmax(-webkit-min-content, 40px);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .gridMaxMinContent {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 30px;
</span><span class="cx">     -webkit-grid-rows: minmax(30px, -webkit-min-content);
</span><span class="cx"> }
</span><span class="lines">@@ -25,10 +22,7 @@
</span><span class="cx">     height: 10px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     font: 10px/1 Ahem;
</span><span class="cx">     /* Make us fit our grid area. */
</span><span class="cx">     width: 100%;
</span><span class="lines">@@ -41,61 +35,61 @@
</span><span class="cx"> &lt;p&gt;Test that resolving minmax function with min-content on grid items works properly.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XXX XXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;40&quot;&gt;XXX XXX XXX XXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;40&quot;&gt;XXX XXX XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;60&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;60&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Allow the extra logical space distribution to occur. --&gt;
</span><span class="cx"> &lt;div style=&quot;width: 30px; height: 100px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;40&quot;&gt;XXX XXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;40&quot;&gt;XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;width: 30px; height: 100px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMinMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;60&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMinMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;60&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
</ins><span class="cx">         &lt;!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --&gt;
</span><del>-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;30&quot;&gt;XXX XXX&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;30&quot;&gt;XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;30&quot;&gt;XXX XXX XXX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;30&quot;&gt;XXX XXX XXX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Allow the extra logical space distribution to occur. --&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;width: 30px; height: 100px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;60&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;60&quot;&gt;XX XX XX XX XX XX&lt;/div&gt;
</ins><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;width: 30px; height: 100px&quot;&gt;
</span><del>-    &lt;div class=&quot;gridMaxMinContent&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridMaxMinContent&quot;&gt;
</ins><span class="cx">         &lt;!-- The 'max' logical width ends up being smaller than the 'min' so per the spec we ignore the 'max'. --&gt;
</span><del>-        &lt;div id=&quot;a&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;30&quot;&gt;XXX XXX&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;30&quot;&gt;XXX XXX&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="trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackinpercentgridhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,6 +4,7 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .container {
</span><span class="cx">     position: relative;
</span><span class="lines">@@ -12,39 +13,28 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 40% 60%;
</span><span class="cx">     -webkit-grid-rows: 30% 70%;
</span><del>-    background-color: grey;
</del><span class="cx">     width: 80%;
</span><span class="cx">     height: 50%;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><del>-#b {
-    background-color: green;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
</del><ins>+
+.firstRowSecondColumn {
</ins><span class="cx">     width: 15px;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-#c {
-    background-color: red;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowFirstColumn {
</ins><span class="cx">     width: 50%;
</span><span class="cx">     height: 50%;
</span><span class="cx"> }
</span><del>-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowSecondColumn {
</ins><span class="cx">     width: -webkit-calc(100%);
</span><span class="cx">     height: -webkit-calc(100%);
</span><span class="cx"> }
</span><span class="lines">@@ -56,37 +46,37 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&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="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: horizontal-bt&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&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="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-rl;&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&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="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-lr;&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&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="trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackupdatehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-update.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,41 +4,31 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 70% 30%;
</span><span class="cx">     -webkit-grid-rows: 40% 60%;
</span><del>-    background-color: grey;
</del><span class="cx">     width: 400px;
</span><span class="cx">     height: 300px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><del>-#b {
-    background-color: green;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
</del><ins>+
+.firstRowSecondColumn {
</ins><span class="cx">     width: 15px;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-#c {
-    background-color: purple;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowFirstColumn {
</ins><span class="cx">     width: 50%;
</span><span class="cx">     height: 50%;
</span><span class="cx"> }
</span><del>-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowSecondColumn {
</ins><span class="cx">     width: -webkit-calc(100%);
</span><span class="cx">     height: -webkit-calc(100%);
</span><span class="cx"> }
</span><span class="lines">@@ -68,28 +58,28 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;180&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;210&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;210&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&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="trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,41 +4,31 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 40% 60%;
</span><span class="cx">     -webkit-grid-rows: 30% 70%;
</span><del>-    background-color: grey;
</del><span class="cx">     width: 400px;
</span><span class="cx">     height: 300px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><del>-#b {
-    background-color: green;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
</del><ins>+
+.firstRowSecondColumn {
</ins><span class="cx">     width: 15px;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-#c {
-    background-color: red;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowFirstColumn {
</ins><span class="cx">     width: 50%;
</span><span class="cx">     height: 50%;
</span><span class="cx"> }
</span><del>-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowSecondColumn {
</ins><span class="cx">     width: -webkit-calc(100%);
</span><span class="cx">     height: -webkit-calc(100%);
</span><span class="cx"> }
</span><span class="lines">@@ -50,37 +40,37 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: horizontal-bt&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;240&quot; data-expected-height=&quot;210&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-rl;&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-lr;&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;280&quot; data-expected-height=&quot;180&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="trunkLayoutTestsfastcssgridlayoutpercentpaddingmarginresolutiongriditemupdatehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item-update.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,40 +4,15 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 200px 200px;
</span><span class="cx">     -webkit-grid-rows: 100px 100px;
</span><span class="cx">     height: 200px;
</span><span class="cx">     width: 400px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
-}
-
-#b {
-    background-color: lime;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
-}
-
-#c {
-    background-color: purple;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
-}
-
-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
-}
-
</del><span class="cx"> .percentPadding {
</span><span class="cx">     width: 0px;
</span><span class="cx">     height: 0px;
</span><span class="lines">@@ -56,10 +31,6 @@
</span><span class="cx">     padding: 10%;
</span><span class="cx">     margin: 20%;
</span><span class="cx"> }
</span><del>-
-.verticalRL {
-    -webkit-writing-mode: vertical-rl;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="lines">@@ -78,10 +49,10 @@
</span><span class="cx"> &lt;p&gt;Test that changing grid tracks size forces the grid items' to resolve percentage padding and margin&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;percentPadding&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentPadding&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&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="trunkLayoutTestsfastcssgridlayoutpercentpaddingmarginresolutiongriditemhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-padding-margin-resolution-grid-item.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,40 +4,15 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 100px 300px;
</span><span class="cx">     -webkit-grid-rows: 50px 150px;
</span><span class="cx">     height: 200px;
</span><span class="cx">     width: 400px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
-}
-
-#b {
-    background-color: lime;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
-}
-
-#c {
-    background-color: purple;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
-}
-
-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
-}
-
</del><span class="cx"> .percentPadding {
</span><span class="cx">     width: 0px;
</span><span class="cx">     height: 0px;
</span><span class="lines">@@ -56,10 +31,6 @@
</span><span class="cx">     padding: 10%;
</span><span class="cx">     margin: 20%;
</span><span class="cx"> }
</span><del>-
-.verticalRL {
-    -webkit-writing-mode: vertical-rl;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -67,31 +38,31 @@
</span><span class="cx"> &lt;p&gt;Test that resolving percentage padding and margin on grid items works properly on a fixed grid with different writing modes.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;percentPadding&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentPadding&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&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 verticalRL&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;percentPadding&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentPadding&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&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;a&quot; class=&quot;percentPadding verticalRL&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentMargin verticalRL&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentPaddingAndMargin verticalRL&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentPaddingAndMargin verticalRL&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentPadding verticalRL&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentMargin verticalRL&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentPaddingAndMargin verticalRL&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentPaddingAndMargin verticalRL&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&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;a&quot; class=&quot;percentPadding verticalRL&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentPaddingAndMargin verticalRL&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentPadding verticalRL&quot; data-expected-padding-top=&quot;50&quot; data-expected-padding-right=&quot;50&quot; data-expected-padding-bottom=&quot;50&quot; data-expected-padding-left=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentMargin&quot; data-expected-margin-top=&quot;150&quot; data-expected-margin-right=&quot;150&quot; data-expected-margin-bottom=&quot;150&quot; data-expected-margin-left=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentPaddingAndMargin verticalRL&quot; data-expected-padding-top=&quot;10&quot; data-expected-padding-right=&quot;10&quot; data-expected-padding-bottom=&quot;10&quot; data-expected-padding-left=&quot;10&quot; data-expected-margin-top=&quot;20&quot; data-expected-margin-right=&quot;20&quot; data-expected-margin-bottom=&quot;20&quot; data-expected-margin-left=&quot;20&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentPaddingAndMargin&quot; data-expected-padding-top=&quot;30&quot; data-expected-padding-right=&quot;30&quot; data-expected-padding-bottom=&quot;30&quot; data-expected-padding-left=&quot;30&quot; data-expected-margin-top=&quot;60&quot; data-expected-margin-right=&quot;60&quot; data-expected-margin-bottom=&quot;60&quot; data-expected-margin-left=&quot;60&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="trunkLayoutTestsfastcssgridlayoutpercentresolutiongriditemhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-resolution-grid-item.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,40 +4,15 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
-    background-color: grey;
</del><span class="cx">     -webkit-grid-columns: 100px 300px;
</span><span class="cx">     -webkit-grid-rows: 50px 150px;
</span><span class="cx">     height: 200px;
</span><span class="cx">     width: 400px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
-}
-
-#b {
-    background-color: lime;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
-}
-
-#c {
-    background-color: purple;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
-}
-
-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
-}
-
</del><span class="cx"> .percentWidth {
</span><span class="cx">     width: 100%;
</span><span class="cx">     height: 15px;
</span><span class="lines">@@ -52,10 +27,6 @@
</span><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><span class="cx"> }
</span><del>-
-.verticalRL {
-    -webkit-writing-mode: vertical-rl;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -63,31 +34,31 @@
</span><span class="cx"> &lt;p&gt;Test that resolving percent lengths on grid items works properly on a fixed grid with different writing modes.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;grid&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;percentWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentHeightAndWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentHeightAndWidth&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentHeightAndWidth&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentHeightAndWidth&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&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 verticalRL&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; class=&quot;percentWidth&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentHeightAndWidth&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentHeightAndWidth&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentWidth&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;300&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentHeightAndWidth&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentHeightAndWidth&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;300&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;a&quot; class=&quot;percentWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentHeight verticalRL&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentHeightAndWidth verticalRL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentHeight verticalRL&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentHeightAndWidth verticalRL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&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;a&quot; class=&quot;percentWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; class=&quot;percentHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; class=&quot;percentHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; class=&quot;percentHeightAndWidth&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn percentWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn percentHeight&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn percentHeightAndWidth verticalRL&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn percentHeightAndWidth&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;150&quot;&gt;&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="trunkLayoutTestsfastcssgridlayoutplacecellbyindexhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html (140479 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html        2013-01-22 23:28:02 UTC (rev 140479)
+++ trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -4,40 +4,30 @@
</span><span class="cx"> if (window.testRunner)
</span><span class="cx">     testRunner.overridePreference(&quot;WebKitCSSGridLayoutEnabled&quot;, 1);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-columns: 50px 60px;
</span><span class="cx">     -webkit-grid-rows: 20px 30px;
</span><del>-    background-color: grey;
</del><span class="cx">     max-width: 110px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#a {
-    background-color: blue;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 1;
</del><ins>+.firstRowFirstColumn {
</ins><span class="cx">     width: 10px;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><del>-#b {
-    background-color: green;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 1;
</del><ins>+
+.firstRowSecondColumn {
</ins><span class="cx">     width: 10px;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><del>-#c {
-    background-color: red;
-    -webkit-grid-column: 1;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowFirstColumn {
</ins><span class="cx">     width: 10px;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><del>-#d {
-    background-color: orange;
-    -webkit-grid-column: 2;
-    -webkit-grid-row: 2;
</del><ins>+
+.secondRowSecondColumn {
</ins><span class="cx">     width: 10px;
</span><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><span class="lines">@@ -51,37 +41,37 @@
</span><span class="cx">      them once we properly implement stretching / alignment. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;50&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;20&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;20&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;20&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;20&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: horizontal-bt&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;50&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;35&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;35&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;15&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;15&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;35&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;35&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;15&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;15&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="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-rl; margin-bottom: 60px;&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;110&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-offset-x=&quot;20&quot; data-offset-y=&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 class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx"> &lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-lr; margin-bottom: 60px;&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;110&quot;&gt;
</span><del>-    &lt;div id=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;c&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
-    &lt;div id=&quot;d&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
+    &lt;div class=&quot;secondRowSecondColumn&quot; data-offset-x=&quot;20&quot; data-offset-y=&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="trunkLayoutTestsfastcssgridlayoutresourcesgridcss"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/resources/grid.css (0 => 140480)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/resources/grid.css                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/resources/grid.css        2013-01-22 23:33:18 UTC (rev 140480)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+.grid {
+    display: -webkit-grid;
+    background-color: grey;
+}
+
+.inline-grid {
+    display: -webkit-inline-grid;
+    background-color: grey;
+}
+
+.firstRowFirstColumn {
+    background-color: blue;
+    -webkit-grid-column: 1;
+    -webkit-grid-row: 1;
+}
+
+.firstRowSecondColumn {
+    background-color: lime;
+    -webkit-grid-column: 2;
+    -webkit-grid-row: 1;
+}
+
+.secondRowFirstColumn {
+    background-color: purple;
+    -webkit-grid-column: 1;
+    -webkit-grid-row: 2;
+}
+
+.secondRowSecondColumn {
+    background-color: orange;
+    -webkit-grid-column: 2;
+    -webkit-grid-row: 2;
+}
+
+.verticalRL {
+    -webkit-writing-mode: vertical-rl;
+}
</ins></span></pre>
</div>
</div>

</body>
</html>