<!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>[196819] 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/196819">196819</a></dd>
<dt>Author</dt> <dd>jfernandez@igalia.com</dd>
<dt>Date</dt> <dd>2016-02-19 05:25:49 -0800 (Fri, 19 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>[CSS Grid Layout Refactoring some layout tests
https://bugs.webkit.org/show_bug.cgi?id=154291

Refactored several tests so they use the shared sizing keywords
instead of specific CSS rules.

Reviewed by Sergio Villar Senin.

* fast/css-grid-layout/calc-resolution-grid-item.html:
* fast/css-grid-layout/flex-and-intrinsic-sizes-expected.txt:
* fast/css-grid-layout/flex-and-intrinsic-sizes.html:
* fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html:
* fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html:
* fast/css-grid-layout/grid-align-justify-margin-border-padding.html:
* fast/css-grid-layout/grid-align-justify-overflow.html:
* fast/css-grid-layout/grid-align-justify-stretch.html:
* fast/css-grid-layout/grid-align.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-container-margin-border-padding-scrollbar.html:
* fast/css-grid-layout/grid-content-alignment-and-self-alignment.html:
* fast/css-grid-layout/grid-content-alignment-overflow.html:
* fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html:
* fast/css-grid-layout/grid-content-alignment-with-span-vertical-rl.html:
* fast/css-grid-layout/grid-content-alignment-with-span.html:
* fast/css-grid-layout/grid-element-change-columns-repaint.html:
* fast/css-grid-layout/grid-element-change-rows-repaint.html:
* fast/css-grid-layout/grid-element-repeat-get-set.html:
* fast/css-grid-layout/grid-gutters-and-alignment.html:
* fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-lr.html:
* fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html:
* fast/css-grid-layout/grid-item-auto-margins-alignment.html:
* fast/css-grid-layout/grid-item-auto-margins-and-stretch.html:
* fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html:
* fast/css-grid-layout/grid-item-change-column-repaint.html:
* fast/css-grid-layout/grid-item-order-paint-order.html:
* fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-expected.txt: Added.
* fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr-expected.txt: Added.
* fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr.html: Added.
* fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl-expected.txt: Added.
* fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl.html: Added.
* fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding.html: Added.
* fast/css-grid-layout/grid-item-z-index-stacking-context-expected.html:
* fast/css-grid-layout/grid-item-z-index-stacking-context.html:
* fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-width-or-margin-change.html:
* fast/css-grid-layout/grid-justify-content-distribution.html:
* fast/css-grid-layout/grid-justify-content-vertical-lr.html:
* fast/css-grid-layout/grid-justify-content-vertical-rl.html:
* fast/css-grid-layout/justify-self-cell.html:
* fast/css-grid-layout/min-width-height-auto-and-margins.html:
* fast/css-grid-layout/minmax-fixed-logical-height-only.html:
* fast/css-grid-layout/minmax-fixed-logical-width-only.html:
* fast/css-grid-layout/minmax-max-content-resolution-columns.html:
* fast/css-grid-layout/minmax-max-content-resolution-rows.html:
* fast/css-grid-layout/named-grid-line-get-set.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.html:
* fast/css-grid-layout/percent-of-indefinite-track-size-in-auto.html:
* fast/css-grid-layout/percent-of-indefinite-track-size.html:
* fast/css-grid-layout/percent-track-breadths-regarding-container-size.html:
* fast/css-grid-layout/place-cell-by-index.html:
* fast/css-grid-layout/resources/grid-alignment.css:
(.alignSelfCenterSafe):
(.alignSelfCenterUnsafe):
(.alignSelfEndSafe):
(.alignSelfEndUnsafe):
(.alignItemsAuto):
(.alignItemsStretch):
(.alignItemsStart):
(.alignItemsEnd):
(.alignItemsCenterSafe):
(.alignItemsCenterUnsafe):
(.alignItemsEndSafe):
(.alignItemsEndUnsafe):
(.justifySelfAuto):
(.justifySelfStretch):
(.justifySelfStart):
(.justifySelfCenter):
(.justifySelfEnd):
(.justifySelfRight):
(.justifySelfLeft):
(.justifySelfFlexStart):
(.justifySelfFlexEnd):
(.justifySelfSelfStart):
(.justifySelfSelfEnd):
(.justifySelfCenterSafe):
(.justifySelfCenterUnsafe):
(.justifyItemsAuto):
(.justifyItemsStretch):
(.justifyItemsStart):
(.justifyItemsCenter):
(.justifyItemsEnd):
(.justifyItemsCenterSafe):
(.justifyItemsCenterUnsafe):
(.justifyItemsEndSafe):
(.justifyItemsEndUnsafe):
(.selfStretch):
(.contentStart):
(.contentCenter):
(.contentEnd):
(.contentCenterSafe):
(.contentCenterUnsafe):
(.contentEndSafe):
(.contentEndUnsafe):
(.contentSpaceBetween):
(.contentSpaceAround):
(.contentSpaceEvenly):
(.contentStretch):
* fast/css-grid-layout/resources/grid.css:
(.verticalRL):
(.verticalLR):
(.horizontalTB):
(.horizontalBT):
(.inline-grid): Deleted.
(.firstRowFirstColumn): Deleted.
(.directionRTL): Deleted.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutcalcresolutiongriditemhtml">trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutflexandintrinsicsizesexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutflexandintrinsicsizeshtml">trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridalignjustifymarginborderpaddingverticallrhtml">trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridalignjustifymarginborderpaddingverticalrlhtml">trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridalignjustifymarginborderpaddinghtml">trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridalignjustifyoverflowhtml">trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridalignjustifystretchhtml">trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-stretch.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridalignhtml">trunk/LayoutTests/fast/css-grid-layout/grid-align.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="#trunkLayoutTestsfastcssgridlayoutgridcontainermarginborderpaddingscrollbarhtml">trunk/LayoutTests/fast/css-grid-layout/grid-container-margin-border-padding-scrollbar.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcontentalignmentandselfalignmenthtml">trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-and-self-alignment.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcontentalignmentoverflowhtml">trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcontentalignmentwithspanverticallrhtml">trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcontentalignmentwithspanverticalrlhtml">trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-rl.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridcontentalignmentwithspanhtml">trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridelementchangecolumnsrepainthtml">trunk/LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridelementchangerowsrepainthtml">trunk/LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridelementrepeatgetsethtml">trunk/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridguttersandalignmenthtml">trunk/LayoutTests/fast/css-grid-layout/grid-gutters-and-alignment.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemautomarginsalignmentverticallrhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-lr.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemautomarginsalignmentverticalrlhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemautomarginsalignmenthtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemautomarginsandstretchhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-and-stretch.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemautosizedalignjustifymarginborderpaddinghtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemchangecolumnrepainthtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemorderpaintorderhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemzindexstackingcontextexpectedhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context-expected.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemzindexstackingcontexthtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemsshouldnotbestretchedwhenheightorwidthormarginchangehtml">trunk/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-width-or-margin-change.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridjustifycontentdistributionhtml">trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-distribution.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridjustifycontentverticallrhtml">trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-lr.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgridjustifycontentverticalrlhtml">trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-rl.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutjustifyselfcellhtml">trunk/LayoutTests/fast/css-grid-layout/justify-self-cell.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutminwidthheightautoandmarginshtml">trunk/LayoutTests/fast/css-grid-layout/min-width-height-auto-and-margins.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="#trunkLayoutTestsfastcssgridlayoutminmaxmaxcontentresolutioncolumnshtml">trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-columns.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutminmaxmaxcontentresolutionrowshtml">trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-rows.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutnamedgridlinegetsethtml">trunk/LayoutTests/fast/css-grid-layout/named-grid-line-get-set.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="#trunkLayoutTestsfastcssgridlayoutpercentgriditeminpercentgridtrackhtml">trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentofindefinitetracksizeinautohtml">trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size-in-auto.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercentofindefinitetracksizehtml">trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutpercenttrackbreadthsregardingcontainersizehtml">trunk/LayoutTests/fast/css-grid-layout/percent-track-breadths-regarding-container-size.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutplacecellbyindexhtml">trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutresourcesgridalignmentcss">trunk/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutresourcesgridcss">trunk/LayoutTests/fast/css-grid-layout/resources/grid.css</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticallrexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticallrhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticalrlexpectedtxt">trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticalrlhtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl.html</a></li>
<li><a href="#trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddinghtml">trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/ChangeLog        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,3 +1,122 @@
</span><ins>+2016-02-19  Javier Fernandez  &lt;jfernandez@igalia.com&gt;
+
+        [CSS Grid Layout Refactoring some layout tests
+        https://bugs.webkit.org/show_bug.cgi?id=154291
+
+        Refactored several tests so they use the shared sizing keywords
+        instead of specific CSS rules.
+
+        Reviewed by Sergio Villar Senin.
+
+        * fast/css-grid-layout/calc-resolution-grid-item.html:
+        * fast/css-grid-layout/flex-and-intrinsic-sizes-expected.txt:
+        * fast/css-grid-layout/flex-and-intrinsic-sizes.html:
+        * fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html:
+        * fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html:
+        * fast/css-grid-layout/grid-align-justify-margin-border-padding.html:
+        * fast/css-grid-layout/grid-align-justify-overflow.html:
+        * fast/css-grid-layout/grid-align-justify-stretch.html:
+        * fast/css-grid-layout/grid-align.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-container-margin-border-padding-scrollbar.html:
+        * fast/css-grid-layout/grid-content-alignment-and-self-alignment.html:
+        * fast/css-grid-layout/grid-content-alignment-overflow.html:
+        * fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html:
+        * fast/css-grid-layout/grid-content-alignment-with-span-vertical-rl.html:
+        * fast/css-grid-layout/grid-content-alignment-with-span.html:
+        * fast/css-grid-layout/grid-element-change-columns-repaint.html:
+        * fast/css-grid-layout/grid-element-change-rows-repaint.html:
+        * fast/css-grid-layout/grid-element-repeat-get-set.html:
+        * fast/css-grid-layout/grid-gutters-and-alignment.html:
+        * fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-lr.html:
+        * fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html:
+        * fast/css-grid-layout/grid-item-auto-margins-alignment.html:
+        * fast/css-grid-layout/grid-item-auto-margins-and-stretch.html:
+        * fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html:
+        * fast/css-grid-layout/grid-item-change-column-repaint.html:
+        * fast/css-grid-layout/grid-item-order-paint-order.html:
+        * fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-expected.txt: Added.
+        * fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr-expected.txt: Added.
+        * fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr.html: Added.
+        * fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl-expected.txt: Added.
+        * fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl.html: Added.
+        * fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding.html: Added.
+        * fast/css-grid-layout/grid-item-z-index-stacking-context-expected.html:
+        * fast/css-grid-layout/grid-item-z-index-stacking-context.html:
+        * fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-width-or-margin-change.html:
+        * fast/css-grid-layout/grid-justify-content-distribution.html:
+        * fast/css-grid-layout/grid-justify-content-vertical-lr.html:
+        * fast/css-grid-layout/grid-justify-content-vertical-rl.html:
+        * fast/css-grid-layout/justify-self-cell.html:
+        * fast/css-grid-layout/min-width-height-auto-and-margins.html:
+        * fast/css-grid-layout/minmax-fixed-logical-height-only.html:
+        * fast/css-grid-layout/minmax-fixed-logical-width-only.html:
+        * fast/css-grid-layout/minmax-max-content-resolution-columns.html:
+        * fast/css-grid-layout/minmax-max-content-resolution-rows.html:
+        * fast/css-grid-layout/named-grid-line-get-set.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.html:
+        * fast/css-grid-layout/percent-of-indefinite-track-size-in-auto.html:
+        * fast/css-grid-layout/percent-of-indefinite-track-size.html:
+        * fast/css-grid-layout/percent-track-breadths-regarding-container-size.html:
+        * fast/css-grid-layout/place-cell-by-index.html:
+        * fast/css-grid-layout/resources/grid-alignment.css:
+        (.alignSelfCenterSafe):
+        (.alignSelfCenterUnsafe):
+        (.alignSelfEndSafe):
+        (.alignSelfEndUnsafe):
+        (.alignItemsAuto):
+        (.alignItemsStretch):
+        (.alignItemsStart):
+        (.alignItemsEnd):
+        (.alignItemsCenterSafe):
+        (.alignItemsCenterUnsafe):
+        (.alignItemsEndSafe):
+        (.alignItemsEndUnsafe):
+        (.justifySelfAuto):
+        (.justifySelfStretch):
+        (.justifySelfStart):
+        (.justifySelfCenter):
+        (.justifySelfEnd):
+        (.justifySelfRight):
+        (.justifySelfLeft):
+        (.justifySelfFlexStart):
+        (.justifySelfFlexEnd):
+        (.justifySelfSelfStart):
+        (.justifySelfSelfEnd):
+        (.justifySelfCenterSafe):
+        (.justifySelfCenterUnsafe):
+        (.justifyItemsAuto):
+        (.justifyItemsStretch):
+        (.justifyItemsStart):
+        (.justifyItemsCenter):
+        (.justifyItemsEnd):
+        (.justifyItemsCenterSafe):
+        (.justifyItemsCenterUnsafe):
+        (.justifyItemsEndSafe):
+        (.justifyItemsEndUnsafe):
+        (.selfStretch):
+        (.contentStart):
+        (.contentCenter):
+        (.contentEnd):
+        (.contentCenterSafe):
+        (.contentCenterUnsafe):
+        (.contentEndSafe):
+        (.contentEndUnsafe):
+        (.contentSpaceBetween):
+        (.contentSpaceAround):
+        (.contentSpaceEvenly):
+        (.contentStretch):
+        * fast/css-grid-layout/resources/grid.css:
+        (.verticalRL):
+        (.verticalLR):
+        (.horizontalTB):
+        (.horizontalBT):
+        (.inline-grid): Deleted.
+        (.firstRowFirstColumn): Deleted.
+        (.directionRTL): Deleted.
+
</ins><span class="cx"> 2016-02-18  Andy Estes  &lt;aestes@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Revert to dispatching the popstate event synchronously
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutcalcresolutiongriditemhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/calc-resolution-grid-item.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -11,17 +11,21 @@
</span><span class="cx"> 
</span><span class="cx"> .calcWidth {
</span><span class="cx">     width: -webkit-calc(80% + 20%);
</span><ins>+    width: calc(80% + 20%);
</ins><span class="cx">     height: 15px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .calcHeight {
</span><span class="cx">     width: 15px;
</span><span class="cx">     height: -webkit-calc(80% + 20px);
</span><ins>+    height: calc(80% + 20px);
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .calcHeightAndWidth {
</span><span class="cx">     width: -webkit-calc(80% + 20px);
</span><ins>+    width: calc(80% + 20px);
</ins><span class="cx">     height: -webkit-calc(70% + 30%);
</span><ins>+    height: calc(70% + 30%);
</ins><span class="cx"> }
</span><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></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutflexandintrinsicsizesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes-expected.txt (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes-expected.txt        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes-expected.txt        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -7,7 +7,7 @@
</span><span class="cx"> Expected 30 for width, but got 70. 
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-  &lt;div class=&quot;grid minContent&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;10&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid min-content&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;10&quot;&gt;
</ins><span class="cx">     &lt;div&gt;XXX XXX&lt;/div&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutflexandintrinsicsizeshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/flex-and-intrinsic-sizes.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,5 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> 
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/height-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;style&gt;
</span><span class="lines">@@ -15,26 +17,6 @@
</span><span class="cx"> 
</span><span class="cx"> div { font: 10px/1 Ahem; }
</span><span class="cx"> 
</span><del>-.minContent {
-    width: -webkit-min-content;
-    height: -webkit-min-content;
-}
-
-.maxContent {
-    width: -webkit-max-content;
-    height: -webkit-max-content;
-}
-
-.fitContent {
-    width: -webkit-fit-content;
-    height: -webkit-fit-content;
-}
-
-.fillAvailable {
-    width: -webkit-fill-available;
-    height: -webkit-fill-available;
-}
-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -51,25 +33,25 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- This fails due to https://bugs.webkit.org/show_bug.cgi?id=150674 --&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-  &lt;div class=&quot;grid minContent&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;10&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid min-content&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;10&quot;&gt;
</ins><span class="cx">     &lt;div&gt;XXX XXX&lt;/div&gt;
</span><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><del>-  &lt;div class=&quot;grid maxContent&quot; data-expected-width=&quot;70&quot; data-expected-height=&quot;10&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid max-content&quot; data-expected-width=&quot;70&quot; data-expected-height=&quot;10&quot;&gt;
</ins><span class="cx">     &lt;div&gt;XXX XXX&lt;/div&gt;
</span><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><del>-  &lt;div class=&quot;grid fitContent&quot; data-expected-width=&quot;70&quot; data-expected-height=&quot;10&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;70&quot; data-expected-height=&quot;10&quot;&gt;
</ins><span class="cx">     &lt;div&gt;XXX XXX&lt;/div&gt;
</span><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><del>-  &lt;div class=&quot;grid fillAvailable&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;
</del><ins>+  &lt;div class=&quot;grid fill-available&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;
</ins><span class="cx">     &lt;div&gt;XXX XXX&lt;/div&gt;
</span><span class="cx">   &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridalignjustifymarginborderpaddingverticallrhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-lr.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -16,7 +17,6 @@
</span><span class="cx">     border-width: 5px 10px 15px 20px;
</span><span class="cx">     border-style: dotted;
</span><span class="cx">     border-color: blue;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -25,12 +25,6 @@
</span><span class="cx">     height: 40px;
</span><span class="cx">     margin: 4px 8px 12px 16px;
</span><span class="cx"> }
</span><del>-
-.stretch {
-    align-self: stretch;
-    justify-self: stretch;
-}
-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -40,7 +34,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;46&quot;  data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -51,10 +45,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn cell&quot;     data-offset-x=&quot;124&quot;  data-offset-y=&quot;36&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;   data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;   data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;324&quot;  data-offset-y=&quot;186&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -62,10 +56,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;202&quot; data-offset-y=&quot;58&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -73,10 +67,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsLeft&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsLeft&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -84,10 +78,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsRight&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsRight&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;58&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -95,10 +89,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalLR itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalLR itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;58&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -106,10 +100,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalLR itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalLR itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;202&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -117,10 +111,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalLR itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalLR itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -128,10 +122,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalLR itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalLR itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;202&quot; data-offset-y=&quot;58&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -140,7 +134,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;46&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;246&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -151,10 +145,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;124&quot; data-offset-y=&quot;236&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;324&quot; data-offset-y=&quot;86&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -162,10 +156,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsEnd&quot;       data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsEnd&quot;       data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;202&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -173,10 +167,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsLeft&quot;      data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsLeft&quot;      data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -184,10 +178,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsRight&quot;     data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsRight&quot;     data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -195,10 +189,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -206,10 +200,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;202&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -217,10 +211,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;246&quot; data-offset-y=&quot;158&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -228,10 +222,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;202&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;14&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridalignjustifymarginborderpaddingverticalrlhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding-vertical-rl.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -16,7 +17,6 @@
</span><span class="cx">     border-width: 5px 10px 15px 20px;
</span><span class="cx">     border-style: dotted;
</span><span class="cx">     border-color: blue;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -25,12 +25,6 @@
</span><span class="cx">     height: 40px;
</span><span class="cx">     margin: 4px 8px 12px 16px;
</span><span class="cx"> }
</span><del>-
-.stretch {
-    align-self: stretch;
-    justify-self: stretch;
-}
-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -40,7 +34,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;402&quot; data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;202&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -51,10 +45,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn cell&quot;     data-offset-x=&quot;324&quot; data-offset-y=&quot;36&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;124&quot; data-offset-y=&quot;186&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -62,10 +56,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;58&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -73,10 +67,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsLeft&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsLeft&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -84,10 +78,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsRight&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsRight&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;58&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -95,10 +89,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalRL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalRL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;58&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -106,10 +100,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalRL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalRL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -117,10 +111,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalRL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalRL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;14&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;114&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -128,10 +122,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR verticalRL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR verticalRL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;58&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;110&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -141,7 +135,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;402&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;402&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;202&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -152,10 +146,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsCenter&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;324&quot; data-offset-y=&quot;236&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;124&quot; data-offset-y=&quot;86&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -163,10 +157,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsEnd&quot;       data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsEnd&quot;       data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -174,10 +168,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsLeft&quot;      data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsLeft&quot;      data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -185,10 +179,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsRight&quot;     data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsRight&quot;     data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -196,10 +190,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -207,10 +201,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -218,10 +212,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsSelfStart&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;402&quot; data-offset-y=&quot;258&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;158&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -229,10 +223,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL itemsSelfEnd&quot; data-expected-width=&quot;475&quot; data-expected-height=&quot;350&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridalignjustifymarginborderpaddinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-margin-border-padding.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -16,7 +17,6 @@
</span><span class="cx">     border-width: 5px 10px 15px 20px;
</span><span class="cx">     border-style: dotted;
</span><span class="cx">     border-color: blue;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -25,13 +25,6 @@
</span><span class="cx">     height: 40px;
</span><span class="cx">     margin: 4px 8px 12px 16px;
</span><span class="cx"> }
</span><del>-
-
-.stretch {
-    align-self: stretch;
-    justify-self: stretch;
-}
-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -41,7 +34,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;146&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -52,10 +45,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn cell&quot;     data-offset-x=&quot;74&quot;  data-offset-y=&quot;86&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;224&quot; data-offset-y=&quot;286&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -63,10 +56,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -74,10 +67,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsLeft&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsLeft&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;146&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -85,10 +78,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsRight&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsRight&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -96,10 +89,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -107,10 +100,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;146&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -118,10 +111,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;146&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -129,10 +122,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR - (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -141,7 +134,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;202&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;302&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -152,10 +145,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;274&quot; data-offset-y=&quot;86&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;124&quot; data-offset-y=&quot;286&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -163,10 +156,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsEnd&quot;       data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsEnd&quot;       data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -174,10 +167,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsLeft&quot;      data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsLeft&quot;      data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -185,10 +178,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsRight&quot;     data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsRight&quot;     data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;302&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -196,10 +189,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -207,10 +200,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;302&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -218,10 +211,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;302&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -229,10 +222,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridalignjustifyoverflowhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-overflow.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -10,7 +12,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 150px 150px;
</span><span class="cx">     -webkit-grid-template-rows: 120px 120px 120px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx"> }
</span><span class="cx"> .cellOverflowWidth {
</span><span class="lines">@@ -25,28 +26,6 @@
</span><span class="cx">     width: 50px;
</span><span class="cx">     height: 40px;
</span><span class="cx"> }
</span><del>-.alignItemsCenter { align-items: center; }
-.alignItemsCenterSafe { align-items: center safe; }
-.alignItemsCenterUnsafe { align-items: center unsafe; }
-.alignItemsEnd { align-items: end; }
-.alignItemsEndSafe { align-items: end safe; }
-.alignItemsEndUnsafe { align-items: end unsafe; }
-.alignSelfCenter { align-self: center; }
-.alignSelfCenterSafe { align-self: center safe; }
-.alignSelfCenterUnsafe { align-self: center unsafe; }
-.alignSelfEnd { align-self: end; }
-.alignSelfEndSafe { align-self: end safe; }
-.alignSelfEndUnsafe { align-self: end unsafe; }
-.justifyItemsCenter { justify-items: center; }
-.justifyItemsCenterSafe { justify-items: center safe; }
-.justifyItemsCenterUnsafe { justify-items: center unsafe; }
-.justifyItemsEnd { justify-items: end; }
-.justifyItemsEndSafe { justify-items: end safe; }
-.justifyItemsEndUnsafe { justify-items: end unsafe; }
-.justifySelfCenter { justify-self: center; }
-.justifySelfCenterSafe { justify-self: center safe; }
-.justifySelfCenterUnsafe { justify-self: center unsafe; }
-.justifySelfEnd { justify-self: end; }
</del><span class="cx"> .thirdRowFirstColumn {
</span><span class="cx">     background-color: green;
</span><span class="cx">     -webkit-grid-column: 1;
</span><span class="lines">@@ -59,7 +38,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that the 'overflow' keyword is applied correctly for 'align' and 'justify' properties.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsCenter justifyItemsCenter&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsCenter justifyItemsCenter&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowWidth  firstRowFirstColumn&quot; data-offset-x=&quot;-15&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;180&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -70,7 +49,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsCenterUnsafe justifyItemsCenterUnsafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsCenterUnsafe justifyItemsCenterUnsafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowHeight firstRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;-15&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -81,7 +60,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsCenterSafe justifyItemsCenterSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsCenterSafe justifyItemsCenterSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowWidth  firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;180&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -92,7 +71,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsCenterSafe justifyItemsCenterSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsCenterSafe justifyItemsCenterSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowHeight firstRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -103,7 +82,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsEnd justifyItemsEnd&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsEnd justifyItemsEnd&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowWidth  firstRowFirstColumn&quot; data-offset-x=&quot;-30&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;180&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn justifySelfCenter&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;320&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -114,7 +93,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsEndUnsafe justifyItemsEndUnsafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsEndUnsafe justifyItemsEndUnsafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowHeight firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;-30&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;320&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -125,7 +104,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsEndSafe justifyItemsEndSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsEndSafe justifyItemsEndSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowWidth  firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;180&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn justifySelfCenterUnsafe&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;320&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -136,7 +115,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsEndSafe justifyItemsEndSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsEndSafe justifyItemsEndSafe&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;360&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cellOverflowHeight firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;150&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cellWithNoOverflow thirdRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;320&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridalignjustifystretchhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-stretch.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-stretch.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-align-justify-stretch.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -11,7 +13,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -19,78 +20,12 @@
</span><span class="cx">     width: 20px;
</span><span class="cx">     height: 40px;
</span><span class="cx"> }
</span><del>-
-.onlyWidthSet {
-    width: 20px;
-}
-
-.onlyHeightSet {
-    height: 40px;
-}
-
-.maxHeight {
-    max-height: 160px;
-}
-
-.maxWidth {
-    max-width: 90px;
-}
-
-.minWidth {
-    min-width: 120px;
-}
-
-.minHeight {
-    min-height: 220px;
-}
-
-.alignItemsAuto {
-    align-items: auto;
-}
-
-.alignItemsStretch {
-    align-items: stretch;
-}
-
-.alignItemsStart {
-    align-items: start;
-}
-
-.alignSelfAuto {
-    align-self: auto;
-}
-
-.alignSelfStretch {
-    align-self: stretch;
-}
-
-.alignSelfStart {
-    align-self: start;
-}
-
-.justifyItemsAuto {
-    justify-items: auto;
-}
-
-.justifyItemsStretch {
-    justify-items: stretch;
-}
-
-.justifyItemsStart {
-    justify-items: start;
-}
-
-.justifySelfAuto {
-    justify-self: auto;
-}
-
-.justifySelfStretch {
-    justify-self: stretch;
-}
-
-.justifySelfStart {
-    justify-self: start;
-}
</del><ins>+.onlyWidthSet { width: 20px; }
+.onlyHeightSet { height: 40px; }
+.maxHeight { max-height: 160px; }
+.maxWidth { max-width: 90px; }
+.minWidth { min-width: 120px; }
+.minHeight { min-height: 220px; }
</ins><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -98,7 +33,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch justifySelfStart firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;0&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet alignSelfStretch justifySelfStart firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet alignSelfStretch justifySelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -107,7 +42,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStart justifySelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet alignSelfStart justifySelfStretch firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet alignSelfStart justifySelfStretch secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -116,7 +51,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;maxHeight alignSelfStretch justifySelfStart firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;0&quot; data-expected-height=&quot;160&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;minWidth widthAndHeightSet alignSelfStretch justifySelfStart firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;minHeight onlyWidthSet alignSelfStretch justifySelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;220&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -125,7 +60,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch justifySelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet alignSelfStretch justifySelfStretch firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet alignSelfStretch justifySelfStretch secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -134,7 +69,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsStretch justifyItemsStart&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsStretch justifyItemsStart&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;0&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -143,7 +78,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsStart justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsStart justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -152,7 +87,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -161,7 +96,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsAuto justifyItemsAuto&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsAuto justifyItemsAuto&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -170,7 +105,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -179,7 +114,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -189,7 +124,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction (it should not affect the block-flow direction). --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -199,7 +134,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction (it should not affect the block-flow) with opposite directions grid container vs grid item. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn  directionRTL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn  directionRTL&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn  directionRTL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -209,7 +144,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical RL writing mode. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -218,7 +153,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -228,7 +163,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical LR writing mode. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR alignItemsStretch justifyItemsStretch&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;widthAndHeightSet firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;onlyWidthSet secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -237,7 +172,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridalignhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-align.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-align.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-align.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -12,7 +13,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that the align-self property is applied correctly.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -45,7 +45,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -55,7 +55,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Default alignment and initial values. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid alignItemsCenter&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content alignItemsCenter&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfAuto firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfAuto firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -74,7 +74,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction (it should not affect the block-flow direction). --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-     &lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+     &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">          &lt;div class=&quot;alignSelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -85,7 +85,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-     &lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+     &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">          &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction (it should not affect the block-flow) with opposite directions grid container vs grid item. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-     &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+     &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">          &lt;div class=&quot;alignSelfStretch firstRowFirstColumn directionRTL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn directionRTL&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfEnd firstRowSecondColumn directionRTL&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -106,7 +106,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-     &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+     &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">          &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn directionRTL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfFlexStart firstRowSecondColumn directionRTL&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn directionRTL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical RL writing mode. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -127,7 +127,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -137,7 +137,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical LR writing mode. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -148,7 +148,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -158,7 +158,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical RL writing mode with opposite block-flow directions grid container vs grid item. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch firstRowFirstColumn verticalLR&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn verticalLR&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;
</span><span class="lines">@@ -180,7 +180,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn verticalLR&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;item&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical LR writing mode with opposite block-flow directions grid container vs grid item. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch firstRowFirstColumn verticalRL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn verticalRL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;
</span><span class="lines">@@ -220,7 +220,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfFlexEnd firstRowFirstColumn verticalRL&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;item&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&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 (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set-multiple.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,9 +1,10 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.grid {
</del><ins>+.definite {
</ins><span class="cx">     /* Give an explicit size to the grid so that percentage grid tracks have a consistent resolution */
</span><span class="cx">     width: 800px;
</span><span class="cx">     height: 600px;
</span><span class="lines">@@ -107,34 +108,34 @@
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-&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;indefiniteSizeGrid gridWithPercent&quot; id=&quot;gridWithPercentWithoutSize&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithFixed&quot; id=&quot;gridWithFixedElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithPercent&quot; id=&quot;gridWithPercentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid min-content gridWithPercent&quot; id=&quot;gridWithPercentWithoutSize&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;
</ins><span class="cx">   &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&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 gridWithMinMaxContent&quot; id=&quot;gridWithMinMaxContentWithChildrenElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithEM&quot; id=&quot;gridWithEMElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithNoneAndAuto&quot; id=&quot;gridWithNoneAndAuto&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithNoneAndFixed&quot; id=&quot;gridWithNoneAndFixed&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithThreeItems&quot; id=&quot;gridWithThreeItems&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithPercentAndViewportPercent&quot; id=&quot;gridWithPercentAndViewportPercent&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFitContentAndFitAvailable&quot; id=&quot;gridWithFitContentAndFitAvailable&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMinMaxContent&quot; id=&quot;gridWithMinMaxContent&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMinMaxContent&quot; id=&quot;gridWithMinMaxContentWithChildrenElement&quot;&gt;
</ins><span class="cx">   &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx">   &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&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;
-&lt;div class=&quot;grid gridWithFractionFraction&quot; id=&quot;gridWithFractionFraction&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithFractionMinMax&quot; id=&quot;gridWithFractionMinMax&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcCalc&quot; id=&quot;gridWithCalcCalc&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcAndFixed&quot; id=&quot;gridWithCalcAndFixed&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcAndMinMax&quot; id=&quot;gridWithCalcAndMinMax&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcInsideMinMax&quot; id=&quot;gridWithCalcInsideMinMax&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithAutoInsideMinMax&quot; id=&quot;gridWithAutoInsideMinMax&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithMinMaxAndFixed&quot; id=&quot;gridWithMinMaxAndFixed&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMinMaxAndMinMaxContent&quot; id=&quot;gridWithMinMaxAndMinMaxContent&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFractionFraction&quot; id=&quot;gridWithFractionFraction&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFractionMinMax&quot; id=&quot;gridWithFractionMinMax&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcCalc&quot; id=&quot;gridWithCalcCalc&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcAndFixed&quot; id=&quot;gridWithCalcAndFixed&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcAndMinMax&quot; id=&quot;gridWithCalcAndMinMax&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcInsideMinMax&quot; id=&quot;gridWithCalcInsideMinMax&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithAutoInsideMinMax&quot; id=&quot;gridWithAutoInsideMinMax&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;script src=&quot;resources/grid-definitions-parsing-utils.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;resources/grid-columns-rows-get-set-multiple.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&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 (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-columns-rows-get-set.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,9 +1,10 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.grid {
</del><ins>+.definite {
</ins><span class="cx">     /* Give an explicit size to the grid so that percentage grid tracks have a consistent resolution */
</span><span class="cx">     width: 800px;
</span><span class="cx">     height: 600px;
</span><span class="lines">@@ -93,38 +94,39 @@
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-&lt;div class=&quot;grid gridWithNone&quot; id=&quot;gridWithNoneElement&quot;&gt;&lt;/div&gt;
-&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;indefiniteSizeGrid gridWithPercent&quot; id=&quot;gridWithPercentWithoutSize&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;indefiniteSizeGrid gridWithPercent&quot; id=&quot;gridWithPercentWithoutSizeWithChildren&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithNone&quot; id=&quot;gridWithNoneElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFixed&quot; id=&quot;gridWithFixedElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithPercent&quot; id=&quot;gridWithPercentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid min-content gridWithPercent&quot; id=&quot;gridWithPercentWithoutSize&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid min-content gridWithPercent&quot; id=&quot;gridWithPercentWithoutSizeWithChildren&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithAuto&quot; id=&quot;gridWithAutoWithChildrenElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithAuto&quot; id=&quot;gridWithAutoWithoutSizeElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithAuto fontSpec&quot; id=&quot;gridWithAutoWithChildrenElement&quot;&gt;
</ins><span class="cx">   &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithEM&quot; id=&quot;gridWithEMElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithViewPortPercentage&quot; id=&quot;gridWithViewPortPercentageElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithFitContent&quot; id=&quot;gridWithFitContentElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithFitAvailable&quot; id=&quot;gridWithFitAvailableElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithMinMax&quot; id=&quot;gridWithMinMaxElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithMinContent&quot; id=&quot;gridWithMinContentElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithMinContent&quot; id=&quot;gridWithMinContentWithChildrenElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithEM&quot; id=&quot;gridWithEMElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithViewPortPercentage&quot; id=&quot;gridWithViewPortPercentageElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFitContent&quot; id=&quot;gridWithFitContentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFitAvailable&quot; id=&quot;gridWithFitAvailableElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMinMax&quot; id=&quot;gridWithMinMaxElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMinContent&quot; id=&quot;gridWithMinContentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMinContent&quot; id=&quot;gridWithMinContentWithChildrenElement&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithMaxContent&quot; id=&quot;gridWithMaxContentElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithMaxContent&quot; id=&quot;gridWithMaxContentWithChildrenElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithMaxContent&quot; id=&quot;gridWithMaxContentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMaxContent&quot; id=&quot;gridWithMaxContentWithChildrenElement&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithFraction&quot; id=&quot;gridWithFractionElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalc&quot; id=&quot;gridWithCalcElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcComplex&quot; id=&quot;gridWithCalcComplexElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcInsideMinMax&quot; id=&quot;gridWithCalcInsideMinMaxElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithCalcComplexInsideMinMax&quot; id=&quot;gridWithCalcComplexInsideMinMaxElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithAutoInsideMinMax&quot; id=&quot;gridWithAutoInsideMinMaxElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithFraction&quot; id=&quot;gridWithFractionElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalc&quot; id=&quot;gridWithCalcElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcComplex&quot; id=&quot;gridWithCalcComplexElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcInsideMinMax&quot; id=&quot;gridWithCalcInsideMinMaxElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithCalcComplexInsideMinMax&quot; id=&quot;gridWithCalcComplexInsideMinMaxElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithAutoInsideMinMax&quot; id=&quot;gridWithAutoInsideMinMaxElement&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;script src=&quot;resources/grid-definitions-parsing-utils.js&quot;&gt;&lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcontainermarginborderpaddingscrollbarhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-container-margin-border-padding-scrollbar.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-container-margin-border-padding-scrollbar.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-container-margin-border-padding-scrollbar.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,13 +1,10 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/height-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.grid {
-    width: -webkit-min-content;
-    height: -webkit-min-content;
-}
-
</del><span class="cx"> .margin {
</span><span class="cx">     margin: 10px;
</span><span class="cx"> }
</span><span class="lines">@@ -35,67 +32,67 @@
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid');&quot;&gt;
</span><span class="cx">     &lt;p&gt;This test checks that grid container size includes border, padding and scrollbar; ignoring margin as expected.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid border&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;110&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content border&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;110&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid padding&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;140&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content padding&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;140&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid scroll&quot; data-expected-width=&quot;115&quot; data-expected-height=&quot;115&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content scroll&quot; data-expected-width=&quot;115&quot; data-expected-height=&quot;115&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin border&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;110&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin border&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;110&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin padding&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;140&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin padding&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;140&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin scroll&quot; data-expected-width=&quot;115&quot; data-expected-height=&quot;115&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin scroll&quot; data-expected-width=&quot;115&quot; data-expected-height=&quot;115&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid border padding&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;150&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content border padding&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;150&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid border scroll&quot; data-expected-width=&quot;125&quot; data-expected-height=&quot;125&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content border scroll&quot; data-expected-width=&quot;125&quot; data-expected-height=&quot;125&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid padding scroll&quot; data-expected-width=&quot;155&quot; data-expected-height=&quot;155&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content padding scroll&quot; data-expected-width=&quot;155&quot; data-expected-height=&quot;155&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin border padding&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;150&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin border padding&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;150&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin border scroll&quot; data-expected-width=&quot;125&quot; data-expected-height=&quot;125&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin border scroll&quot; data-expected-width=&quot;125&quot; data-expected-height=&quot;125&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin padding scroll&quot; data-expected-width=&quot;155&quot; data-expected-height=&quot;155&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin padding scroll&quot; data-expected-width=&quot;155&quot; data-expected-height=&quot;155&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid border padding scroll&quot; data-expected-width=&quot;165&quot; data-expected-height=&quot;165&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content border padding scroll&quot; data-expected-width=&quot;165&quot; data-expected-height=&quot;165&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid margin border padding scroll&quot; data-expected-width=&quot;165&quot; data-expected-height=&quot;165&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content margin border padding scroll&quot; data-expected-width=&quot;165&quot; data-expected-height=&quot;165&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcontentalignmentandselfalignmenthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-and-self-alignment.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-and-self-alignment.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-and-self-alignment.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -38,42 +39,11 @@
</span><span class="cx">     -webkit-grid-auto-rows: minmax(40px, auto);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.spaceBetween {
-    justify-content: space-between;
-    align-content: space-between;
-}
</del><span class="cx"> 
</span><del>-.spaceAround {
-    justify-content: space-around;
-    align-content: space-around;
-}
-
-.spaceEvenly {
-    justify-content: space-evenly;
-    align-content: space-evenly;
-}
-
-.stretch {
-    justify-content: stretch;
-    align-content: stretch;
-}
-
</del><span class="cx"> .cell {
</span><span class="cx">     width: 20px;
</span><span class="cx">     height: 40px;
</span><span class="cx"> }
</span><del>-.justifyCenter {
-    justify-self: center;
-}
-.alignCenter {
-    align-self: center;
-}
-.justifyEnd {
-    justify-self: end;
-}
-.alignEnd {
-    align-self: end;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -82,9 +52,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-between' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter&quot; data-offset-x=&quot;70&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignCenter&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter&quot; data-offset-x=&quot;70&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfCenter&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -92,9 +62,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-between' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignEnd&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfEnd&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -102,9 +72,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-around' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignCenter&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfCenter&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -112,9 +82,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-around' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignEnd&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfEnd&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -122,9 +92,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-evenly' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignCenter&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfCenter&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -132,9 +102,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-evenly' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignEnd&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfEnd&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -142,9 +112,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'stretch' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter alignCenter&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell justifyCenter alignCenter&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter alignSelfCenter&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell justifySelfCenter alignSelfCenter&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -152,9 +122,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'stretch' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd alignEnd&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell justifyEnd alignEnd&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd alignSelfEnd&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell justifySelfEnd alignSelfEnd&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -163,9 +133,9 @@
</span><span class="cx"> &lt;!-- RTL direction. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-between' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter&quot; data-offset-x=&quot;210&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignCenter&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter&quot; data-offset-x=&quot;210&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfCenter&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -173,9 +143,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-between' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignEnd&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfEnd&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -183,9 +153,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-around' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignCenter&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfCenter&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -193,9 +163,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-around' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignEnd&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfEnd&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -203,9 +173,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-evenly' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignCenter&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfCenter&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -213,9 +183,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-evenly' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell alignEnd&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell alignSelfEnd&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -223,9 +193,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'stretch' | self-alignment: center&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyCenter alignCenter&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell justifyCenter alignCenter&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfCenter alignSelfCenter&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell justifySelfCenter alignSelfCenter&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -233,9 +203,9 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'stretch' | self-alignment: end&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
-        &lt;div class=&quot;a cell justifyEnd alignEnd&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;b cell justifyEnd alignEnd&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;a cell justifySelfEnd alignSelfEnd&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;b cell justifySelfEnd alignSelfEnd&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;d&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcontentalignmentoverflowhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-overflow.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -22,37 +23,6 @@
</span><span class="cx">     width: 200px;
</span><span class="cx">     height: 150px;
</span><span class="cx"> }
</span><del>-
-.center {
-    align-content: center;
-    justify-content: center;
-}
-
-.centerSafe {
-    align-content: center safe;
-    justify-content: center safe;
-}
-
-.centerUnsafe {
-    align-content: center unsafe;
-    justify-content: center unsafe;
-}
-
-.end {
-    align-content: end;
-    justify-content: end;
-}
-
-.endSafe {
-    align-content: end safe;
-    justify-content: end safe;
-}
-
-.endUnsafe {
-    align-content: end unsafe;
-    justify-content: end unsafe;
-}
-
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -60,7 +30,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that the 'overflow' keyword is applied correctly for Content Alignment properties.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowWidth center&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowWidth contentCenter&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;-20&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;-20&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -69,7 +39,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowHeight centerUnsafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowHeight contentCenterUnsafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;-25&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;75&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;-25&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -78,7 +48,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowWidth centerSafe&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowWidth contentCenterSafe&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;150&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -87,7 +57,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowHeight centerSafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowHeight contentCenterSafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -96,7 +66,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowWidth end&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowWidth contentEnd&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;-40&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;-40&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;10&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -105,7 +75,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowHeight endUnsafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowHeight contentEndUnsafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;-50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;150&quot; data-offset-y=&quot;-50&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -114,7 +84,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowWidth endSafe&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowWidth contentEndSafe&quot; data-expected-width=&quot;60&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;50&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -123,7 +93,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid overflowHeight endSafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid overflowHeight contentEndSafe&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;150&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;150&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcontentalignmentwithspanverticallrhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-lr.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -37,22 +38,6 @@
</span><span class="cx">     -webkit-grid-auto-columns: auto;
</span><span class="cx">     -webkit-grid-auto-rows: auto;
</span><span class="cx"> }
</span><del>-.spaceBetween {
-    justify-content: space-between;
-    align-content: space-between;
-}
-.spaceAround {
-    justify-content: space-around;
-    align-content: space-around;
-}
-.spaceEvenly {
-    justify-content: space-evenly;
-    align-content: space-evenly;
-}
-.stretch {
-    justify-content: stretch;
-    align-content: stretch;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -61,7 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-between'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;160&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;160&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -71,7 +56,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-around'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;240&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -81,7 +66,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-evenly'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;220&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;120&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -91,7 +76,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'stretch'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch verticalLR&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -102,7 +87,7 @@
</span><span class="cx"> &lt;!-- RTL direction. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-between'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;140&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;160&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;160&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -112,7 +97,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-around'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;140&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;240&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -122,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-evenly'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;140&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;120&quot; data-offset-y=&quot;220&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -132,7 +117,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'stretch'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch verticalLR directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcontentalignmentwithspanverticalrlhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-rl.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-rl.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span-vertical-rl.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -37,22 +38,6 @@
</span><span class="cx">     -webkit-grid-auto-columns: auto;
</span><span class="cx">     -webkit-grid-auto-rows: auto;
</span><span class="cx"> }
</span><del>-.spaceBetween {
-    justify-content: space-between;
-    align-content: space-between;
-}
-.spaceAround {
-    justify-content: space-around;
-    align-content: space-around;
-}
-.spaceEvenly {
-    justify-content: space-evenly;
-    align-content: space-evenly;
-}
-.stretch {
-    justify-content: stretch;
-    align-content: stretch;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -61,7 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-between'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;160&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;160&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -71,7 +56,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-around'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;240&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -81,7 +66,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-evenly'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;120&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;220&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -91,7 +76,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'stretch'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch verticalRL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -102,7 +87,7 @@
</span><span class="cx"> &lt;!-- RTL direction. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-between'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;160&quot; data-offset-y=&quot;140&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;160&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -112,7 +97,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-around'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;140&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;30&quot; data-offset-y=&quot;240&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -122,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-evenly'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;120&quot; data-offset-y=&quot;140&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;220&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -132,7 +117,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'stretch'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch verticalRL directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridcontentalignmentwithspanhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-content-alignment-with-span.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -37,22 +38,6 @@
</span><span class="cx">     -webkit-grid-auto-columns: auto;
</span><span class="cx">     -webkit-grid-auto-rows: auto;
</span><span class="cx"> }
</span><del>-.spaceBetween {
-    justify-content: space-between;
-    align-content: space-between;
-}
-.spaceAround {
-    justify-content: space-around;
-    align-content: space-around;
-}
-.spaceEvenly {
-    justify-content: space-evenly;
-    align-content: space-evenly;
-}
-.stretch {
-    justify-content: stretch;
-    align-content: stretch;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -61,7 +46,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-between'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -71,7 +56,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-around'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;140&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -81,7 +66,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'space-evenly'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -91,7 +76,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: LTR | distribution: 'stretch'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -102,7 +87,7 @@
</span><span class="cx"> &lt;!-- RTL direction. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-between'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceBetween directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceBetween directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;280&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -112,7 +97,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-around'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceAround directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceAround directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;140&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;240&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -122,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'space-evenly''&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid spaceEvenly directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid contentSpaceEvenly directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;60&quot; data-offset-y=&quot;40&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;120&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;220&quot; data-offset-y=&quot;120&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -132,7 +117,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><span class="cx">     &lt;p&gt;direction: RTL | distribution: 'stretch'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid stretchedGrid stretch directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid stretchedGrid contentStretch directionRTL&quot; data-expected-width=&quot;300&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;a&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;b&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;c&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridelementchangecolumnsrepainthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-element-change-columns-repaint.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -9,6 +9,7 @@
</span><span class="cx"> }
</span><span class="cx"> window.addEventListener(&quot;load&quot;, runRepaintTest, false);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -16,7 +17,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .grid {
</span><del>-    width: -webkit-min-content;
</del><span class="cx">     -webkit-grid-template-rows: 50px;
</span><span class="cx">     -webkit-grid-template-columns: minmax(100px, 180px) 100px minmax(50px, 100px);
</span><span class="cx"> }
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div&gt; This test checks that changing the grid-template-columns lead to a repaint. The final grid element should be 250px * 50px, the grid item should be 50px * 50px. No trace of the elements before the grid-template-columns change should be seen.&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;sizedToGridArea&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridelementchangerowsrepainthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-element-change-rows-repaint.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -9,6 +9,7 @@
</span><span class="cx"> }
</span><span class="cx"> window.addEventListener(&quot;load&quot;, runRepaintTest, false);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -16,7 +17,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .grid {
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     -webkit-grid-template-rows: 50px 100px;
</span><span class="cx">     -webkit-grid-template-columns: 100px;
</span><span class="cx"> }
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div&gt;This test checks that changing the grid-template-rows lead to a repaint. The final grid element should be 100px * 150px, the grid item should be 100px * 100px. No trace of the elements before the grid-template-rows change should be seen.&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;sizedToGridArea&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridelementrepeatgetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-element-repeat-get-set.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,14 +1,14 @@
</span><span class="cx"> &lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML//EN&quot;&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.grid {
</del><ins>+.definite {
</ins><span class="cx">     /* Give an explicit size to the grid so that percentage grid tracks have a consistent resolution */
</span><span class="cx">     width: 800px;
</span><span class="cx">     height: 600px;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> .gridItem {
</span><span class="cx">     -webkit-grid-column: 1;
</span><span class="cx">     -webkit-grid-row: 1;
</span><span class="lines">@@ -71,28 +71,28 @@
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-&lt;div class=&quot;grid singleSingleTrackRepeat&quot; id=&quot;singleSingleTrackRepeatWithSize&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;indefiniteSizeGrid singleSingleTrackRepeat&quot; id=&quot;singleSingleTrackRepeatWithoutSize&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid twoSingleTrackRepeat&quot; id=&quot;twoSingleTrackRepeat&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid twoSingleTrackRepeat&quot; id=&quot;twoSingleTrackRepeatWithChildren&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite singleSingleTrackRepeat&quot; id=&quot;singleSingleTrackRepeatWithSize&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid min-content singleSingleTrackRepeat&quot; id=&quot;singleSingleTrackRepeatWithoutSize&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite twoSingleTrackRepeat&quot; id=&quot;twoSingleTrackRepeat&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite twoSingleTrackRepeat&quot; id=&quot;twoSingleTrackRepeatWithChildren&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid twoDoubleTrackRepeat&quot; id=&quot;twoDoubleTrackRepeat&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite twoDoubleTrackRepeat&quot; id=&quot;twoDoubleTrackRepeat&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid twoDoubleTrackWithNamedGridLineRepeat&quot; id=&quot;twoDoubleTrackWithNamedGridLineRepeat&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite twoDoubleTrackWithNamedGridLineRepeat&quot; id=&quot;twoDoubleTrackWithNamedGridLineRepeat&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;gridItem2&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid twoDoubleTrackWithTrailingNamedGridLineRepeat&quot; id=&quot;twoDoubleTrackWithTrailingNamedGridLineRepeat&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid trailingNamedGridLineRepeat&quot; id=&quot;trailingNamedGridLineRepeat&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid leadingNamedGridLineRepeat&quot; id=&quot;leadingNamedGridLineRepeat&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid mixRepeatAfterNonRepeat&quot; id=&quot;mixRepeatAfterNonRepeat&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite twoDoubleTrackWithTrailingNamedGridLineRepeat&quot; id=&quot;twoDoubleTrackWithTrailingNamedGridLineRepeat&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite trailingNamedGridLineRepeat&quot; id=&quot;trailingNamedGridLineRepeat&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite leadingNamedGridLineRepeat&quot; id=&quot;leadingNamedGridLineRepeat&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite mixRepeatAfterNonRepeat&quot; id=&quot;mixRepeatAfterNonRepeat&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid mixNonRepeatAfterRepeat&quot; id=&quot;mixNonRepeatAfterRepeat&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid definite mixNonRepeatAfterRepeat&quot; id=&quot;mixNonRepeatAfterRepeat&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;script src=&quot;resources/grid-definitions-parsing-utils.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridguttersandalignmenthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-gutters-and-alignment.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-gutters-and-alignment.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-gutters-and-alignment.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><del>-&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=stylesheet&gt;
</del><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="lines">@@ -10,7 +10,6 @@
</span><span class="cx"> .grid100And200 {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative; /* For the &lt;p&gt; comments */
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -36,7 +35,6 @@
</span><span class="cx">     border-width: 5px 10px 15px 20px;
</span><span class="cx">     border-style: dotted;
</span><span class="cx">     border-color: blue;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative; /* For the &lt;p&gt; comments */
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -56,11 +54,6 @@
</span><span class="cx">     position: relative;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.stretch {
-    align-self: stretch;
-    justify-self: stretch;
-}
-
</del><span class="cx"> .stretchedGrid { -webkit-grid-auto-columns: auto; }
</span><span class="cx"> 
</span><span class="cx"> .gridRowColumnGaps {
</span><span class="lines">@@ -95,7 +88,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Check that gutters do not interfere with self alignment computation. --&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid grid100And200 alignItemsCenter gridRowColumnGaps&quot; data-expected-width=&quot;221&quot; data-expected-height=&quot;417&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid grid100And200 fit-content alignItemsCenter gridRowColumnGaps&quot; data-expected-width=&quot;221&quot; data-expected-height=&quot;417&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell alignSelfAuto firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot; data-offset-x=&quot;121&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;217&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -104,7 +97,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid grid100And200 verticalLR gridRowColumnGaps&quot; data-expected-width=&quot;417&quot; data-expected-height=&quot;221&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid grid100And200 fit-content verticalLR gridRowColumnGaps&quot; data-expected-width=&quot;417&quot; data-expected-height=&quot;221&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;alignSelfStretch firstRowFirstColumn verticalRL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn verticalRL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;121&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;
</span><span class="lines">@@ -126,7 +119,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-     &lt;div class=&quot;grid grid100And200 directionRTL gridRowColumnGaps&quot; data-expected-width=&quot;221&quot; data-expected-height=&quot;417&quot;&gt;
</del><ins>+     &lt;div class=&quot;grid grid100And200 fit-content directionRTL gridRowColumnGaps&quot; data-expected-width=&quot;221&quot; data-expected-height=&quot;417&quot;&gt;
</ins><span class="cx">          &lt;div class=&quot;alignSelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;121&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfStart firstRowSecondColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">          &lt;div class=&quot;cell alignSelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -274,10 +267,10 @@
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid gridWithPaddingBorder directionLTR itemsSelfStart gridRowColumnGaps&quot; data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridWithPaddingBorder fit-content directionLTR itemsSelfStart gridRowColumnGaps&quot; data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;151&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;151&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;167&quot; data-offset-y=&quot;231&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -285,10 +278,10 @@
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid gridWithPaddingBorder directionLTR itemsSelfEnd gridRowColumnGaps&quot; data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridWithPaddingBorder fit-content directionLTR itemsSelfEnd gridRowColumnGaps&quot; data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;151&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;151&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;167&quot; data-offset-y=&quot;375&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -296,10 +289,10 @@
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid gridWithPaddingBorder directionRTL itemsRight gridRowColumnGaps&quot;     data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridWithPaddingBorder fit-content directionRTL itemsRight gridRowColumnGaps&quot;     data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;323&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;251&quot; data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;251&quot; data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;231&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -307,10 +300,10 @@
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid gridWithPaddingBorder directionRTL itemsSelfStart gridRowColumnGaps&quot; data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid gridWithPaddingBorder fit-content directionRTL itemsSelfStart gridRowColumnGaps&quot; data-expected-width=&quot;396&quot; data-expected-height=&quot;467&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;323&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;251&quot; data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;251&quot; data-offset-y=&quot;227&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot;  data-offset-y=&quot;231&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemautomarginsalignmentverticallrhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-lr.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-lr.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-lr.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -11,7 +13,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -25,11 +26,6 @@
</span><span class="cx"> .autoMarginBottom { margin-bottom: auto; }
</span><span class="cx"> .autoMarginLeft { margin-left: auto; }
</span><span class="cx"> .autoMargin { margin: auto; }
</span><del>-
-.itemsCenter {
-    align-items: center;
-    justify-items: center;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -38,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: center | fixed size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsCenter&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsCenter&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -48,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: start | fixed size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -58,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: center | auto size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsCenter&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsCenter&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -68,7 +64,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: start | auto size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -79,7 +75,7 @@
</span><span class="cx"> &lt;!-- direction RTL --&gt;
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: center | fixed size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsCenter directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsCenter directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -90,7 +86,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: start | fixed size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -100,7 +96,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: center | auto size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR itemsCenter directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR itemsCenter directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;380&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -111,7 +107,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: start | auto size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemautomarginsalignmentverticalrlhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment-vertical-rl.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -11,7 +13,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -25,11 +26,6 @@
</span><span class="cx"> .autoMarginBottom { margin-bottom: auto; }
</span><span class="cx"> .autoMarginLeft { margin-left: auto; }
</span><span class="cx"> .autoMargin { margin: auto; }
</span><del>-
-.itemsCenter {
-    align-items: center;
-    justify-items: center;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -38,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: center | fixed size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsCenter&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsCenter&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -48,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: start | fixed size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -58,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: center | auto size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsCenter&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsCenter&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;60&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -68,7 +64,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: start | auto size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -79,7 +75,7 @@
</span><span class="cx"> &lt;!-- direction RTL --&gt;
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: center | fixed size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsCenter directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsCenter directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -90,7 +86,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: start | fixed size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -100,7 +96,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: center | auto size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL itemsCenter directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL itemsCenter directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;290&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;30&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;130&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemautomarginsalignmenthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-alignment.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -11,7 +13,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -25,11 +26,6 @@
</span><span class="cx"> .autoMarginBottom { margin-bottom: auto; }
</span><span class="cx"> .autoMarginLeft { margin-left: auto; }
</span><span class="cx"> .autoMargin { margin: auto; }
</span><del>-
-.itemsCenter {
-    align-items: center;
-    justify-items: center;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span><span class="lines">@@ -38,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: center | fixed size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid itemsCenter&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsCenter&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -48,7 +44,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: start | fixed size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -58,7 +54,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: center | auto size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid itemsCenter&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsCenter&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;80&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -68,7 +64,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: LTR | Self Aligmment: start | auto size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -79,7 +75,7 @@
</span><span class="cx"> &lt;!-- direction RTL --&gt;
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: center | fixed size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid itemsCenter directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsCenter directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -89,7 +85,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: start | fixed size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;item autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -99,7 +95,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: center | auto size items | 1 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid itemsCenter directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsCenter directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMarginTop firstRowFirstColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;160&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginRight firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMarginLeft secondRowFirstColumn&quot; data-offset-x=&quot;180&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -109,7 +105,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Direction: RTL | Self Aligmment: start | auto size items | 4 auto-margin&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;autoMargin firstRowFirstColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin firstRowSecondColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;autoMargin secondRowFirstColumn&quot; data-offset-x=&quot;140&quot; data-offset-y=&quot;280&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;item&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemautomarginsandstretchhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-and-stretch.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-and-stretch.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-margins-and-stretch.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="lines">@@ -11,7 +12,6 @@
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     margin-bottom: 20px;
</span><span class="cx">     font: 15px/1 Ahem;
</span><span class="cx"> }
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that the 'stretch' value is only applied if neither of its margins (in the appropriate axis) are 'auto'.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;widthAndHeightSet&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -64,7 +64,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;widthAndHeightSet&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;widthAndHeightSet&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -99,7 +99,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;widthAndHeightSet&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -116,7 +116,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;widthAndHeightSet&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span><span class="lines">@@ -133,7 +133,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid  directionRTL verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;widthAndHeightSet&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemautosizedalignjustifymarginborderpaddinghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-auto-sized-align-justify-margin-border-padding.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,4 +1,5 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="lines">@@ -14,7 +15,6 @@
</span><span class="cx">     border-width: 5px 10px 15px 20px;
</span><span class="cx">     border-style: dotted;
</span><span class="cx">     border-color: blue;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;146&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -45,10 +45,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn cell&quot;     data-offset-x=&quot;74&quot;  data-offset-y=&quot;86&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;224&quot; data-offset-y=&quot;286&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -56,10 +56,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -67,10 +67,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsLeft&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsLeft&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;146&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -78,10 +78,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid itemsRight&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content itemsRight&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -89,10 +89,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -100,10 +100,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;146&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -111,10 +111,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;46&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;146&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -122,10 +122,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: LTR - (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionLTR itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;102&quot;  data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;130&quot; data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -134,7 +134,7 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'auto' | justify-items: 'auto'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;   data-offset-x=&quot;302&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot;  data-offset-x=&quot;202&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell secondRowFirstColumn&quot;  data-offset-x=&quot;302&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="lines">@@ -145,10 +145,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'center' | justify-items: 'center'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsCenter&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;274&quot; data-offset-y=&quot;86&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;124&quot; data-offset-y=&quot;286&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -156,10 +156,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'end' | justify-items: 'end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsEnd&quot;       data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsEnd&quot;       data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -167,10 +167,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'left' | justify-items: 'left'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsLeft&quot;      data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsLeft&quot;      data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -178,10 +178,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL | align-items: 'right' | justify-items: 'right'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsRight&quot;     data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsRight&quot;     data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell firstRowFirstColumn&quot;     data-offset-x=&quot;302&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -189,10 +189,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -200,10 +200,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (ortho) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell firstRowFirstColumn&quot;     data-offset-x=&quot;302&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionLTR stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionLTR stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionLTR selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionLTR selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionLTR cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -211,10 +211,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-start' | justify-items: 'self-start'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfStart&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;302&quot; data-offset-y=&quot;14&quot;  data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;202&quot;  data-offset-y=&quot;214&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -222,10 +222,10 @@
</span><span class="cx"> &lt;div&gt;
</span><span class="cx">     &lt;p&gt;border: 5px 10px 15px 20px | padding: 10px 15px 20px 30px | margin: 4px 8px 12px 16px&lt;br&gt;
</span><span class="cx">         direction: RTL (parall) | align-items: 'self-end' | justify-items: 'self-end'&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content directionRTL itemsSelfEnd&quot; data-expected-width=&quot;375&quot; data-expected-height=&quot;450&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell firstRowFirstColumn&quot;     data-offset-x=&quot;246&quot; data-offset-y=&quot;158&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><del>-        &lt;div class=&quot;directionRTL stretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
-        &lt;div class=&quot;directionRTL stretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</del><ins>+        &lt;div class=&quot;directionRTL selfStretch firstRowSecondColumn&quot; data-offset-x=&quot;30&quot;  data-offset-y=&quot;10&quot;  data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
+        &lt;div class=&quot;directionRTL selfStretch secondRowFirstColumn&quot; data-offset-x=&quot;230&quot; data-offset-y=&quot;210&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</ins><span class="cx">         &lt;div class=&quot;directionRTL cell secondRowSecondColumn&quot;   data-offset-x=&quot;46&quot; data-offset-y=&quot;358&quot; data-expected-width=&quot;20&quot;  data-expected-height=&quot;40&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemchangecolumnrepainthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-change-column-repaint.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -9,6 +9,7 @@
</span><span class="cx"> }
</span><span class="cx"> window.addEventListener(&quot;load&quot;, runRepaintTest, false);
</span><span class="cx"> &lt;/script&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -16,7 +17,6 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .grid {
</span><del>-    width: -webkit-min-content;
</del><span class="cx">     -webkit-grid-template-rows: 50px;
</span><span class="cx">     -webkit-grid-template-columns: minmax(100px, 180px) 100px minmax(50px, 100px);
</span><span class="cx"> }
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> &lt;body&gt;
</span><span class="cx"> &lt;div&gt;This test checks that changing the grid-column on a grid item properly repaint. The final grid item should be 50px * 50px. There should be no trace of the grid item at the old position.&lt;/div&gt;
</span><span class="cx"> &lt;div class=&quot;constrainedContainer&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;sizedToGridArea&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemorderpaintorderhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-order-paint-order.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,13 +1,12 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    display: -webkit-grid;
</del><span class="cx">     -webkit-grid-template-rows: 100px;
</span><span class="cx">     -webkit-grid-template-columns: 100px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx"> }
</span><span class="cx"> .sizedToGridArea {
</span><span class="cx">     background-color: green;
</span><span class="lines">@@ -29,12 +28,12 @@
</span><span class="cx"> &lt;body&gt;
</span><span class="cx">     &lt;p&gt;This test checks that 'order' changes the paint ordering.&lt;/p&gt;
</span><span class="cx">     &lt;p&gt;There should be 2 green squares below.&lt;/p&gt;
</span><del>-    &lt;div class=&quot;grid&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;sizedToGridArea firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;sizedToGridArea firstRowFirstColumn negativeOrder red&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;grid&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;sizedToGridArea firstRowFirstColumn positiveOrder&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;sizedToGridArea firstRowFirstColumn red&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-expected.txt (0 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-expected.txt        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.
+
+direction: LTR | margin: 4px 8px 12px 16px
+
+X X X X X X X X X X
+PASS
+direction: LTR | border: 5px 10px 15px 20px
+
+X X X X X X X X X X
+PASS
+direction: LTR | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px
+
+X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px
+
+X X X X X X X X X X
+PASS
+direction: RTL | border: 5px 10px 15px 20px
+
+X X X X X X X X X X
+PASS
+direction: RTL | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px
+
+X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticallrexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr-expected.txt (0 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr-expected.txt        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.
+
+direction: LTR | margin: 4px 8px 12px 16px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticallrhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr.html (0 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr.html                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-lr.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -0,0 +1,161 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+body {
+    margin: 0;
+}
+
+.grid {
+    -webkit-grid-template-columns: 100px 100px;
+    -webkit-grid-template-rows: 200px 200px;
+    margin-bottom: 20px;
+    position: relative;
+    font: 15px/1 Ahem;
+}
+
+.margins {
+    margin: 4px 8px 12px 16px;
+}
+
+.paddings {
+    padding: 4px 6px 8px 10px;
+}
+
+.borders {
+    border-width: 5px 10px 15px 20px;
+    border-style: dotted;
+}
+
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
+
+&lt;p&gt;This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.&lt;/p&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;borders firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;borders secondRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;paddings firstRowFirstColumn&quot; data-total-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;paddings secondRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins paddings firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins paddings secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders paddings firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders paddings secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;!-- rtl direction --&gt;
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;borders firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;borders secondRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;paddings firstRowFirstColumn&quot; data-total-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;paddings secondRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins paddings firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins paddings secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalLR  directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders paddings firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders paddings secondRowSecondColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticalrlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl-expected.txt (0 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl-expected.txt        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.
+
+direction: LTR | margin: 4px 8px 12px 16px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
+direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px
+
+X X X X X X X X X X X X X X
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddingverticalrlhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl.html (0 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl.html                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding-vertical-rl.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -0,0 +1,161 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+body {
+    margin: 0;
+}
+
+.grid {
+    -webkit-grid-template-columns: 100px 100px;
+    -webkit-grid-template-rows: 200px 200px;
+    margin-bottom: 20px;
+    position: relative;
+    font: 15px/1 Ahem;
+}
+
+.margins {
+    margin: 4px 8px 12px 16px;
+}
+
+.paddings {
+    padding: 4px 6px 8px 10px;
+}
+
+.borders {
+    border-width: 5px 10px 15px 20px;
+    border-style: dotted;
+}
+
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
+
+&lt;p&gt;This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.&lt;/p&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;borders firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;borders secondRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;paddings firstRowFirstColumn&quot; data-total-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;paddings secondRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins paddings firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins paddings secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders paddings firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders paddings secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;!-- rtl direction --&gt;
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;borders firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;borders secondRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;170&quot; data-expected-client-height=&quot;80&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;paddings firstRowFirstColumn&quot; data-total-x=&quot;200&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;paddings secondRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins paddings firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins paddings secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;176&quot; data-expected-client-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content verticalRL  directionRTL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
+        &lt;div class=&quot;margins borders paddings firstRowFirstColumn&quot; data-offset-x=&quot;216&quot; data-offset-y=&quot;104&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot; data-expected-client-width=&quot;146&quot; data-expected-client-height=&quot;64&quot;&gt;X X X X X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot; data-expected-client-width=&quot;200&quot; data-expected-client-height=&quot;100&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders paddings secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;176&quot; data-expected-height=&quot;84&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemstretchwithmarginsborderspaddinghtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding.html (0 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding.html                                (rev 0)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-stretch-with-margins-borders-padding.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -0,0 +1,161 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
+&lt;style&gt;
+body {
+    margin: 0;
+}
+
+.grid {
+    -webkit-grid-template-columns: 100px 100px;
+    -webkit-grid-template-rows: 200px 200px;
+    margin-bottom: 20px;
+    position: relative;
+    font: 15px/1 Ahem;
+}
+
+.margins {
+    margin: 4px 8px 12px 16px;
+}
+
+.paddings {
+    padding: 4px 6px 8px 10px;
+}
+
+.borders {
+    border-width: 5px 10px 15px 20px;
+    border-style: dotted;
+}
+
+&lt;/style&gt;
+&lt;/head&gt;
+&lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
+
+&lt;p&gt;This test checks that the 'stretch' value is applied correctly for 'align' and 'justify' properties.&lt;/p&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins secondRowSecondColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;borders firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;70&quot; data-expected-client-height=&quot;180&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;borders secondRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;70&quot; data-expected-client-height=&quot;180&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;paddings firstRowFirstColumn&quot; data-total-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;paddings secondRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins borders firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;46&quot; data-expected-client-height=&quot;164&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders secondRowSecondColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;46&quot; data-expected-client-height=&quot;164&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins paddings firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins paddings secondRowSecondColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: LTR | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins borders paddings firstRowFirstColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;46&quot; data-expected-client-height=&quot;164&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders paddings secondRowSecondColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;!-- rtl direction --&gt;
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins firstRowFirstColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;borders firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;70&quot; data-expected-client-height=&quot;180&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;borders secondRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;70&quot; data-expected-client-height=&quot;180&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;paddings firstRowFirstColumn&quot; data-total-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;paddings secondRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins borders firstRowFirstColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;46&quot; data-expected-client-height=&quot;164&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;46&quot; data-expected-client-height=&quot;164&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins paddings firstRowFirstColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins paddings secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;76&quot; data-expected-client-height=&quot;184&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;div style=&quot;position: relative&quot;&gt;
+    &lt;p&gt;direction: RTL | margin: 4px 8px 12px 16px | border: 5px 10px 15px 20px | padding: 4px 6px 8px 10px&lt;/p&gt;
+    &lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
+        &lt;div class=&quot;margins borders paddings firstRowFirstColumn&quot; data-offset-x=&quot;116&quot; data-offset-y=&quot;4&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot; data-expected-client-width=&quot;46&quot; data-expected-client-height=&quot;164&quot;&gt;X X X X X X X X X X&lt;/div&gt;
+        &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot; data-expected-client-width=&quot;100&quot; data-expected-client-height=&quot;200&quot;&gt;&lt;/div&gt;
+        &lt;div class=&quot;margins borders paddings secondRowSecondColumn&quot; data-offset-x=&quot;16&quot; data-offset-y=&quot;204&quot; data-expected-width=&quot;76&quot; data-expected-height=&quot;184&quot;&gt;&lt;/div&gt;
+    &lt;/div&gt;
+&lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemzindexstackingcontextexpectedhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context-expected.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context-expected.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context-expected.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><span class="lines">@@ -17,15 +18,15 @@
</span><span class="cx"> &lt;p&gt;This test checks that grid items with 'z-index' do produce a stacking context and that we honor the property.&lt;/p&gt;
</span><span class="cx"> &lt;p&gt;For this test to pass, there should be no red below.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea green&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea green&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea green firstRowBothColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemzindexstackingcontexthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-item-z-index-stacking-context.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,7 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><span class="lines">@@ -26,17 +27,17 @@
</span><span class="cx"> &lt;p&gt;This test checks that grid items with 'z-index' do produce a stacking context and that we honor the property.&lt;/p&gt;
</span><span class="cx"> &lt;p&gt;For this test to pass, there should be no red below.&lt;/p&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea green positiveZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;sizedToGridArea red firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea green firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;sizedToGridArea red negativeZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;sizedToGridArea green firstRowBothColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;sizedToGridArea red negativeZIndex firstRowFirstColumn&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;sizedToGridArea red negativeZIndex firstRowSecondColumn&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgriditemsshouldnotbestretchedwhenheightorwidthormarginchangehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-width-or-margin-change.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-width-or-margin-change.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-items-should-not-be-stretched-when-height-or-width-or-margin-change.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,9 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE HTML&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><del>-    width: -webkit-fit-content;
</del><span class="cx">     position: relative;
</span><span class="cx"> }
</span><span class="cx"> .content {
</span><span class="lines">@@ -15,19 +15,19 @@
</span><span class="cx"> #fromMarginAuto { margin: auto; }
</span><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;p&gt;The grids below had initially 'stretched' items, but we have changed 'height', 'width' and 'margin' to values which don't allow stretch. This test verifies that the layout algorithm properly detects such changes and clear the override height and width accordingly.&lt;/p&gt;
</span><del>-&lt;div class=&quot;grid&quot; style=&quot;-webkit-grid-template: 200px 200px / 200px 200px;&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; style=&quot;-webkit-grid-template: 200px 200px / 200px 200px;&quot;&gt;
</ins><span class="cx">     &lt;div id=&quot;toFixedHeight&quot; class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div id=&quot;fromFixedHeight&quot; class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot; style=&quot;-webkit-grid-template: 200px 200px / 200px 200px;&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; style=&quot;-webkit-grid-template: 200px 200px / 200px 200px;&quot;&gt;
</ins><span class="cx">     &lt;div id=&quot;toFixedWidth&quot; class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div id=&quot;fromFixedWidth&quot; class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot; style=&quot;-webkit-grid-template: 200px 200px / 200px 200px;&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; style=&quot;-webkit-grid-template: 200px 200px / 200px 200px;&quot;&gt;
</ins><span class="cx">     &lt;div id=&quot;toMarginAuto&quot; class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">         &lt;div style=&quot;width: 150px; height: 100px&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="lines">@@ -37,19 +37,19 @@
</span><span class="cx">         &lt;div style=&quot;width: 150px; height: 100px&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div id=&quot;contentSized-toFixedHeight&quot; class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div id=&quot;contentSized-fromFixedHeight&quot; class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div id=&quot;contentSized-toFixedWidth&quot; class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;div class=&quot;content&quot;&gt;&lt;/div&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div id=&quot;contentSized-fromFixedWidth&quot; class=&quot;secondRowSecondColumn&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">     &lt;div id=&quot;contentSized-toMarginAuto&quot; class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;150&quot; data-expected-height=&quot;100&quot;&gt;
</span><span class="cx">         &lt;div style=&quot;width: 150px; height: 100px&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridjustifycontentdistributionhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-distribution.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-distribution.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-distribution.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -19,22 +20,6 @@
</span><span class="cx"> .stretchedGrid {
</span><span class="cx">     -webkit-grid-auto-columns: auto;
</span><span class="cx"> }
</span><del>-
-.justifyContentSpaceBetween {
-    justify-content: space-between;
-}
-
-.justifyContentSpaceAround {
-    justify-content: space-around;
-}
-
-.justifyContentSpaceEvenly {
-    justify-content: space-evenly;
-}
-
-.justifyContentStretch {
-    justify-content: stretch;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridjustifycontentverticallrhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-lr.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-lr.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-lr.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -19,34 +20,6 @@
</span><span class="cx">     width: 20px;
</span><span class="cx">     height: 40px;
</span><span class="cx"> }
</span><del>-
-.justifyContentStart {
-    justify-content: start;
-}
-
-.justifyContentEnd {
-    justify-content: end;
-}
-
-.justifyContentCenter {
-    justify-content: center;
-}
-
-.justifyContentLeft {
-    justify-content: left;
-}
-
-.justifyContentRight {
-    justify-content: right;
-}
-
-.justifyContentFlexStart {
-    justify-content: flex-start;
-}
-
-.justifyContentFlexEnd {
-    justify-content: flex-end;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutgridjustifycontentverticalrlhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-rl.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-rl.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/grid-justify-content-vertical-rl.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -2,6 +2,7 @@
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> body {
</span><span class="lines">@@ -19,34 +20,6 @@
</span><span class="cx">     width: 20px;
</span><span class="cx">     height: 40px;
</span><span class="cx"> }
</span><del>-
-.justifyContentStart {
-    justify-content: start;
-}
-
-.justifyContentEnd {
-    justify-content: end;
-}
-
-.justifyContentCenter {
-    justify-content: center;
-}
-
-.justifyContentLeft {
-    justify-content: left;
-}
-
-.justifyContentRight {
-    justify-content: right;
-}
-
-.justifyContentFlexStart {
-    justify-content: flex-start;
-}
-
-.justifyContentFlexEnd {
-    justify-content: flex-end;
-}
</del><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body onload=&quot;checkLayout('.grid')&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutjustifyselfcellhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/justify-self-cell.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/justify-self-cell.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/justify-self-cell.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,65 +1,18 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><ins>+&lt;link href=&quot;resources/grid-alignment.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><span class="cx">     -webkit-grid-template-columns: 100px 100px;
</span><span class="cx">     -webkit-grid-template-rows: 200px 200px;
</span><del>-    width: -webkit-fit-content;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .cell {
</span><span class="cx">     width: 10px;
</span><span class="cx">     height: 20px;
</span><span class="cx"> }
</span><del>-
-.justifySelfAuto {
-    justify-self: auto;
-}
-
-.justifySelfStretch {
-    justify-self: stretch;
-}
-
-.justifySelfStart {
-    justify-self: start;
-}
-
-.justifySelfEnd {
-    justify-self: end;
-}
-
-.justifySelfCenter {
-    justify-self: center;
-}
-
-.justifySelfRight {
-    justify-self: right;
-}
-
-.justifySelfLeft {
-    justify-self: left;
-}
-
-.justifySelfFlexStart {
-    justify-self: flex-start;
-}
-
-.justifySelfFlexEnd {
-    justify-self: flex-end;
-}
-
-.justifySelfSelfStart {
-    justify-self: self-start;
-}
-
-.justifySelfSelfEnd {
-    justify-self: self-end;
-}
-
-.justifyItemsCenter {
-    justify-items: center;
-}
</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,7 +20,7 @@
</span><span class="cx"> &lt;p&gt;This test checks that the justify-self property is applied correctly.&lt;/p&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;justifySelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfStart firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -77,7 +30,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;cell justifySelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -87,7 +40,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Default justification and initial values. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid justifyItemsCenter&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content justifyItemsCenter&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;cell justifySelfAuto firstRowFirstColumn&quot; data-offset-x=&quot;45&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot; data-offset-x=&quot;145&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell justifySelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -96,7 +49,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-    &lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;justifySelfAuto firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell firstRowSecondColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;cell justifySelfStart secondRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -106,7 +59,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- Vertical writing mode. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;justifySelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;100&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfStart firstRowSecondColumn&quot; data-offset-x=&quot;390&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;390&quot; data-offset-y=&quot;180&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -116,7 +69,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;cell justifySelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;80&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;100&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;200&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -126,7 +79,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;justifySelfStretch firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfStart firstRowSecondColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfEnd firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -136,7 +89,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content directionRTL&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;cell justifySelfFlexEnd firstRowFirstColumn&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfFlexStart firstRowSecondColumn&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfSelfStart secondRowFirstColumn&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -146,7 +99,7 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;!-- RTL direction with opposite directions grid container vs grid item. --&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;justifySelfStretch firstRowFirstColumn directionRTL&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfStart firstRowSecondColumn directionRTL&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfEnd firstRowSecondColumn directionRTL&quot; data-offset-x=&quot;190&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -156,7 +109,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot; class=&quot;constrainedContainer&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</del><ins>+&lt;div class=&quot;grid fit-content&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;400&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;cell justifySelfFlexEnd firstRowFirstColumn directionRTL&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfFlexStart firstRowSecondColumn directionRTL&quot; data-offset-x=&quot;100&quot; data-offset-y=&quot;0&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;cell justifySelfSelfStart secondRowFirstColumn directionRTL&quot; data-offset-x=&quot;90&quot; data-offset-y=&quot;200&quot; data-expected-width=&quot;10&quot; data-expected-height=&quot;20&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutminwidthheightautoandmarginshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/min-width-height-auto-and-margins.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/min-width-height-auto-and-margins.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/min-width-height-auto-and-margins.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,4 +1,6 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/height-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .columnsSmallerThanContentBox { -webkit-grid-template-columns: 80px; }
</span><span class="lines">@@ -26,8 +28,8 @@
</span><span class="cx">     background-color: blue;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.fitContentHeight { align-items: start; }
-.fitContentWidth { justify-items: start; }
</del><ins>+.fitContentOnlyHeight { width: auto; align-items: start; }
+.fitContentOnlyWidth { height: auto; justify-items: start; }
</ins><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,35 +75,35 @@
</span><span class="cx"> &lt;!-- Checking shrink-to-fit in row-axis --&gt;
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | column smaller than content-box, row bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentWidth columnsSmallerThanContentBox rowsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyWidth columnsSmallerThanContentBox rowsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | column of same size than content-box, row bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentWidth columnsSameAsContentBox rowsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyWidth columnsSameAsContentBox rowsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | column bigger than content-box, row bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentWidth columnsBiggerThanContentBox rowsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyWidth columnsBiggerThanContentBox rowsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | column of same size as margin-box, row bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentWidth columnsSameAsMarginBox rowsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyWidth columnsSameAsMarginBox rowsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | column bigger than content-box, row bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentWidth columnsBiggerThanMarginBox rowsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyWidth columnsBiggerThanMarginBox rowsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;60&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="lines">@@ -145,35 +147,35 @@
</span><span class="cx"> &lt;!-- Checking min-height: auto logic --&gt;
</span><span class="cx"> &lt;p&gt;Stretching allowed in row axis, fitContent in column-axis | row smaller than content-box, column bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentHeight rowsSmallerThanContentBox columnsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyHeight rowsSmallerThanContentBox columnsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;25&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in row axis, fitContent in column-axis | row of same size than content-box, column bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentHeight rowsSameAsContentBox columnsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyHeight rowsSameAsContentBox columnsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;25&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | row bigger than content-box, column bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentHeight rowsBiggerThanContentBox columnsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyHeight rowsBiggerThanContentBox columnsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;25&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in row axis, fitContent in column-axis | row of same size as margin-box, column bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentHeight rowsSameAsMarginBox columnsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyHeight rowsSameAsMarginBox columnsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;25&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;Stretching allowed in column axis, fitContent in row-axis | row bigger than margin-box, column bigger than margin-box&lt;/p&gt;
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-    &lt;div class=&quot;grid fitContentHeight rowsBiggerThanMarginBox columnsBiggerThanMarginBox&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid fit-content fitContentOnlyHeight rowsBiggerThanMarginBox columnsBiggerThanMarginBox&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;item&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;20&quot; data-expected-width=&quot;110&quot; data-expected-height=&quot;25&quot;&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&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 (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-height-only.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -26,21 +26,18 @@
</span><span class="cx"> #grid4 {
</span><span class="cx">     -webkit-grid-template-columns: 30px;
</span><span class="cx">     -webkit-grid-template-rows: minmax(20px, 80px) 60px;
</span><del>-    -webkit-writing-mode: vertical-rl;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #grid5 {
</span><span class="cx">     -webkit-grid-template-columns: 30px;
</span><span class="cx">     /* 90% &gt; 80px, 80px should be ignored. */
</span><span class="cx">     -webkit-grid-template-rows: minmax(90%, 80px) minmax(10px, 60%);
</span><del>-    -webkit-writing-mode: vertical-lr;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #grid6 {
</span><span class="cx">     /* Overlapping range. */
</span><span class="cx">     -webkit-grid-template-columns: 30px;
</span><span class="cx">     -webkit-grid-template-rows: minmax(10px, 180px) minmax(30px, 150px);
</span><del>-    -webkit-writing-mode: horizontal-bt;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .firstRowFirstColumn {
</span><span class="lines">@@ -74,17 +71,17 @@
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;110&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;grid4&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid verticalRL&quot; id=&quot;grid4&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;grid5&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid verticalLR&quot; id=&quot;grid5&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;90&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;10&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;grid6&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid horizontalBT&quot; id=&quot;grid6&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;90&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-height=&quot;110&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&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 (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-fixed-logical-width-only.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -27,21 +27,18 @@
</span><span class="cx"> #grid4 {
</span><span class="cx">     -webkit-grid-template-columns: minmax(20px, 80px) 160px;
</span><span class="cx">     -webkit-grid-template-rows: 30px;
</span><del>-    -webkit-writing-mode: vertical-rl;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #grid5 {
</span><span class="cx">     /* 50% &gt; 80px, 80px should be ignored. */
</span><span class="cx">     -webkit-grid-template-columns: minmax(50%, 80px) minmax(10px, 60%);
</span><span class="cx">     -webkit-grid-template-rows: 30px;
</span><del>-    -webkit-writing-mode: vertical-lr;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> #grid6 {
</span><span class="cx">     /* Overlapping range. */
</span><span class="cx">     -webkit-grid-template-columns: minmax(10px, 180px) minmax(30px, 150px);
</span><span class="cx">     -webkit-grid-template-rows: 30px;
</span><del>-    -webkit-writing-mode: horizontal-bt;
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .firstRowFirstColumn {
</span><span class="lines">@@ -75,17 +72,17 @@
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;50&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;grid4&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid verticalRL&quot; id=&quot;grid4&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;40&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;160&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;grid5&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid verticalLR&quot; id=&quot;grid5&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;100&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;100&quot; data-expected-width=&quot;30&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><del>-&lt;div class=&quot;grid&quot; id=&quot;grid6&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</del><ins>+&lt;div class=&quot;grid horizontalBT&quot; id=&quot;grid6&quot; data-expected-width=&quot;100&quot; data-expected-height=&quot;200&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;40&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-height=&quot;30&quot; data-expected-width=&quot;60&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutminmaxmaxcontentresolutioncolumnshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-columns.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-columns.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-columns.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -18,10 +18,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('.gridMinMaxContent'); checkLayout('.gridMaxMaxContent')&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutminmaxmaxcontentresolutionrowshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-rows.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-rows.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/minmax-max-content-resolution-rows.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -18,10 +18,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('.gridMinMaxContent'); checkLayout('.gridMaxMaxContent')&quot;&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutnamedgridlinegetsethtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/named-grid-line-get-set.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/named-grid-line-get-set.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/named-grid-line-get-set.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,9 +1,10 @@
</span><span class="cx"> &lt;!DOCTYPE HTML&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.grid {
</del><ins>+.definite {
</ins><span class="cx">     /* Give an explicit size to the grid so that percentage grid tracks have a consistent resolution */
</span><span class="cx">     width: 800px;
</span><span class="cx">     height: 600px;
</span><span class="lines">@@ -70,26 +71,27 @@
</span><span class="cx"> &lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;/head&gt;
</span><span class="cx"> &lt;body&gt;
</span><del>-&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;indefiniteSizeGrid gridWithPercent&quot; id=&quot;gridWithPercentWithoutSize&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;indefiniteSizeGrid gridWithPercent&quot; id=&quot;gridWithPercentWithoutSizeWithChildren&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithFixed&quot; id=&quot;gridWithFixedElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithPercent&quot; id=&quot;gridWithPercentElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid min-content gridWithPercent&quot; id=&quot;gridWithPercentWithoutSize&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid min-content gridWithPercent&quot; id=&quot;gridWithPercentWithoutSizeWithChildren&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithAuto&quot; id=&quot;gridWithAutoWithChildrenElement&quot;&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithAuto&quot; id=&quot;gridWithAutoElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithAuto&quot; id=&quot;gridWithAutoWithChildrenElement&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;gridItem&quot;&gt;&lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><del>-&lt;div class=&quot;grid gridWithMinMax&quot; id=&quot;gridWithMinMax&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithFixedMultiple&quot; id=&quot;gridWithFixedMultiple&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithPercentageSameStringMultipleTimes&quot; id=&quot;gridWithPercentageSameStringMultipleTimes&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithRepeat&quot; id=&quot;gridWithRepeatElement&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithEmptyBrackets&quot; id=&quot;gridWithEmptyBrackets&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithoutBrackets&quot; id=&quot;gridWithoutBrackets&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithInvalidNestedBrackets&quot; id=&quot;gridWithInvalidNestedBrackets&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithUnbalancedBrackets&quot; id=&quot;gridWithUnbalancedBrackets&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithMisplacedBrackets&quot; id=&quot;gridWithMisplacedBrackets&quot;&gt;&lt;/div&gt;
-&lt;div class=&quot;grid gridWithContiguousBrackets&quot; id=&quot;gridWithContiguousBrackets&quot;&gt;&lt;/div&gt;
</del><ins>+&lt;div class=&quot;grid definite gridWithMinMax&quot; id=&quot;gridWithMinMax&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithFixedMultiple&quot; id=&quot;gridWithFixedMultiple&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithPercentageSameStringMultipleTimes&quot; id=&quot;gridWithPercentageSameStringMultipleTimes&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithRepeat&quot; id=&quot;gridWithRepeatElement&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithEmptyBrackets&quot; id=&quot;gridWithEmptyBrackets&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithoutBrackets&quot; id=&quot;gridWithoutBrackets&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithInvalidNestedBrackets&quot; id=&quot;gridWithInvalidNestedBrackets&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithUnbalancedBrackets&quot; id=&quot;gridWithUnbalancedBrackets&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithMisplacedBrackets&quot; id=&quot;gridWithMisplacedBrackets&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithContiguousBrackets&quot; id=&quot;gridWithContiguousBrackets&quot;&gt;&lt;/div&gt;
+&lt;div class=&quot;grid definite gridWithInvalidCustomIdents&quot; id=&quot;gridWithInvalidCustomIdents&quot;&gt;&lt;/div&gt;
</ins><span class="cx"> &lt;script src=&quot;resources/grid-definitions-parsing-utils.js&quot;&gt;&lt;/script&gt;
</span><span class="cx"> &lt;script&gt;
</span><span class="cx">     description('Test that setting and getting grid-template-columns and grid-template-rows works as expected');
</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 (196818 => 196819)</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        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track-in-percent-grid.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -50,7 +50,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-&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;
</del><ins>+&lt;div class=&quot;grid horizontalBT&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -59,7 +59,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-&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;
</del><ins>+&lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -68,7 +68,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div class=&quot;container&quot;&gt;
</span><del>-&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;
</del><ins>+&lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
</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 (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-grid-item-in-percent-grid-track.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: horizontal-bt&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+&lt;div class=&quot;grid horizontalBT&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;160&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;90&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;105&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -53,7 +53,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-rl;&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+&lt;div class=&quot;grid verticalRL&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -62,7 +62,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-&lt;div class=&quot;grid&quot; style=&quot;-webkit-writing-mode: vertical-lr;&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</del><ins>+&lt;div class=&quot;grid verticalLR&quot; data-expected-width=&quot;400&quot; data-expected-height=&quot;300&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-expected-width=&quot;120&quot; data-expected-height=&quot;15&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-expected-width=&quot;15&quot; data-expected-height=&quot;180&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-expected-width=&quot;140&quot; data-expected-height=&quot;60&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutpercentofindefinitetracksizeinautohtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size-in-auto.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size-in-auto.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size-in-auto.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,7 +1,8 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.indefiniteSizeGrid {
</del><ins>+.grid {
</ins><span class="cx">     font: 10px/1 Ahem;
</span><span class="cx"> }
</span><span class="cx"> .gridWithPercent {
</span><span class="lines">@@ -30,37 +31,37 @@
</span><span class="cx"> }
</span><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><del>-&lt;body onload=&quot;checkLayout('.indefiniteSizeGrid');&quot;&gt;
</del><ins>+&lt;body onload=&quot;checkLayout('.grid');&quot;&gt;
</ins><span class="cx"> &lt;p&gt;This test checks that percentages of indefinite sizes are treated as min-content (for the min track sizing function) or max-content (for the max track sizing function).&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercent&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercent&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;br&gt;XXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMinOfMinMax&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMinOfMinMax&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XX XX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMinOfMinMax2&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMinOfMinMax2&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XX XX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMaxOfMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMaxOfMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXXX&lt;br&gt;X&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMaxOfMinMax2&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMaxOfMinMax2&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXXX&lt;br&gt;X&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentsInMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;40&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentsInMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;40&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;br&gt;XX XX&lt;br&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutpercentofindefinitetracksizehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-of-indefinite-track-size.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,9 +1,9 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><del>-.indefiniteSizeGrid {
</del><ins>+.grid {
</ins><span class="cx">     font: 10px/1 Ahem;
</span><del>-    width: -webkit-min-content;
</del><span class="cx"> }
</span><span class="cx"> .gridWithPercent {
</span><span class="cx">      -webkit-grid-template-columns: 25%;
</span><span class="lines">@@ -31,37 +31,37 @@
</span><span class="cx"> }
</span><span class="cx"> &lt;/style&gt;
</span><span class="cx"> &lt;script src=&quot;../../resources/check-layout.js&quot;&gt;&lt;/script&gt;
</span><del>-&lt;body onload=&quot;checkLayout('.indefiniteSizeGrid');&quot;&gt;
</del><ins>+&lt;body onload=&quot;checkLayout('.grid');&quot;&gt;
</ins><span class="cx"> &lt;p&gt;This test checks that percentages of indefinite sizes are treated as min-content (for the min track sizing function) or max-content (for the max track sizing function).&lt;/p&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercent&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercent&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;br&gt;XXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMinOfMinMax&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMinOfMinMax&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XX XX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMinOfMinMax2&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMinOfMinMax2&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;/div&gt;
</span><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XX XX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMaxOfMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMaxOfMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXXX&lt;br&gt;X&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentInMaxOfMinMax2&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;20&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentInMaxOfMinMax2&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;20&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXXX&lt;br&gt;X&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> &lt;div style=&quot;position: relative;&quot;&gt;
</span><del>-    &lt;div class=&quot;indefiniteSizeGrid gridWithPercentsInMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;40&quot;&gt;
</del><ins>+    &lt;div class=&quot;grid min-content gridWithPercentsInMinMax&quot; data-expected-width=&quot;40&quot; data-expected-height=&quot;40&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;firstRowFirstColumn&quot;&gt;XXX&lt;br&gt;XX XX&lt;br&gt;XXXX&lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> &lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutpercenttrackbreadthsregardingcontainersizehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/percent-track-breadths-regarding-container-size.html (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/percent-track-breadths-regarding-container-size.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/percent-track-breadths-regarding-container-size.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -1,6 +1,8 @@
</span><span class="cx"> &lt;!DOCTYPE html&gt;
</span><span class="cx"> &lt;html&gt;
</span><span class="cx"> &lt;head&gt;
</span><ins>+&lt;link href=&quot;../css-intrinsic-dimensions/resources/width-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
+&lt;link href=&quot;../css-intrinsic-dimensions/resources/height-keyword-classes.css&quot; rel=&quot;stylesheet&quot;&gt;
</ins><span class="cx"> &lt;link href=&quot;resources/grid.css&quot; rel=&quot;stylesheet&quot;&gt;
</span><span class="cx"> &lt;style&gt;
</span><span class="cx"> .grid {
</span><span class="lines">@@ -27,8 +29,7 @@
</span><span class="cx">     position: absolute;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.indefiniteSize {
-    width: -webkit-fit-content;
</del><ins>+.indefiniteHeight {
</ins><span class="cx">     height: auto;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -61,7 +62,7 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;indefiniteSize&quot;&gt;
</del><ins>+    &lt;div class=&quot;indefiniteHeight fit-content&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;grid&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;10&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;10&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="lines">@@ -77,7 +78,7 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;indefiniteSize&quot;&gt;
</del><ins>+    &lt;div class=&quot;indefiniteHeight&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;grid fixedSize&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;80&quot; data-expected-height=&quot;160&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;200&quot; data-expected-height=&quot;160&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="lines">@@ -85,7 +86,7 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;indefiniteSize&quot;&gt;
</del><ins>+    &lt;div class=&quot;fit-content indefiniteHeight&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;grid calculatedSize&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;10&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;10&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="lines">@@ -101,7 +102,7 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;indefiniteSize&quot;&gt;
</del><ins>+    &lt;div class=&quot;fit-content indefiniteHeight&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;grid percentageSize&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;10&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;10&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="lines">@@ -117,7 +118,7 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;indefiniteSize&quot;&gt;
</del><ins>+    &lt;div class=&quot;fit-content indefiniteHeight&quot;&gt;
</ins><span class="cx">         &lt;div class=&quot;grid absolutelyPositioned&quot;&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;0&quot; data-expected-height=&quot;0&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;0&quot; data-expected-height=&quot;0&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="lines">@@ -133,8 +134,8 @@
</span><span class="cx">         &lt;/div&gt;
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><del>-    &lt;div class=&quot;indefiniteSize&quot;&gt;
-        &lt;div class=&quot;grid indefiniteSize&quot;&gt;
</del><ins>+    &lt;div class=&quot;fit-content indefiniteHeight&quot;&gt;
+        &lt;div class=&quot;grid fit-content indefiniteHeight&quot;&gt;
</ins><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;10&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;10&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowThirdColumn sizedToGridArea&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;10&quot;&gt;XXX&lt;/div&gt;
</span><span class="lines">@@ -142,7 +143,7 @@
</span><span class="cx">     &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">     &lt;div class=&quot;unconstrainedContainer&quot;&gt;
</span><del>-        &lt;div class=&quot;grid indefiniteSize&quot;&gt;
</del><ins>+        &lt;div class=&quot;grid fit-content&quot;&gt;
</ins><span class="cx">             &lt;div class=&quot;firstRowFirstColumn sizedToGridArea&quot; data-expected-width=&quot;20&quot; data-expected-height=&quot;10&quot;&gt;XX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowSecondColumn sizedToGridArea&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;10&quot;&gt;XXXXX&lt;/div&gt;
</span><span class="cx">             &lt;div class=&quot;firstRowThirdColumn sizedToGridArea&quot; data-expected-width=&quot;30&quot; data-expected-height=&quot;10&quot;&gt;XXX&lt;/div&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 (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/place-cell-by-index.html        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -54,7 +54,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-&lt;div class=&quot;grid&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;
</del><ins>+&lt;div class=&quot;grid verticalRL&quot; style=&quot;margin-bottom: 60px;&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;110&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;40&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;div style=&quot;position: relative&quot;&gt;
</span><del>-&lt;div class=&quot;grid&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;
</del><ins>+&lt;div class=&quot;grid verticalLR&quot; style=&quot;margin-bottom: 60px;&quot; data-expected-width=&quot;50&quot; data-expected-height=&quot;110&quot;&gt;
</ins><span class="cx">     &lt;div class=&quot;firstRowFirstColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;firstRowSecondColumn&quot; data-offset-x=&quot;0&quot; data-offset-y=&quot;50&quot;&gt;&lt;/div&gt;
</span><span class="cx">     &lt;div class=&quot;secondRowFirstColumn&quot; data-offset-x=&quot;20&quot; data-offset-y=&quot;0&quot;&gt;&lt;/div&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutresourcesgridalignmentcss"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/resources/grid-alignment.css        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -13,9 +13,23 @@
</span><span class="cx"> .alignSelfSelfStart { align-self: self-start; }
</span><span class="cx"> .alignSelfSelfEnd { align-self: self-end; }
</span><span class="cx"> 
</span><ins>+.alignSelfCenterSafe { align-self: center safe; }
+.alignSelfCenterUnsafe { align-self: center unsafe; }
+.alignSelfEndSafe { align-self: end safe; }
+.alignSelfEndUnsafe { align-self: end unsafe; }
+
</ins><span class="cx"> /* align-items */
</span><ins>+.alignItemsAuto { align-items: auto; }
+.alignItemsStretch { align-items: stretch; }
+.alignItemsStart { align-items: start; }
</ins><span class="cx"> .alignItemsCenter { align-items: center; }
</span><ins>+.alignItemsEnd { align-items: end; }
</ins><span class="cx"> 
</span><ins>+.alignItemsCenterSafe { align-items: center safe; }
+.alignItemsCenterUnsafe { align-items: center unsafe; }
+.alignItemsEndSafe { align-items: end safe; }
+.alignItemsEndUnsafe { align-items: end unsafe; }
+
</ins><span class="cx"> /* align-content */
</span><span class="cx"> .alignContentBaseline { align-content: baseline; }
</span><span class="cx"> .alignContentLastBaseline { align-content: last-baseline; }
</span><span class="lines">@@ -27,6 +41,36 @@
</span><span class="cx"> .alignContentFlexStart { align-content: flex-start; }
</span><span class="cx"> .alignContentFlexEnd { align-content: flex-end; }
</span><span class="cx"> 
</span><ins>+/* justify-self */
+.justifySelfAuto { justify-self: auto; }
+.justifySelfStretch { justify-self: stretch; }
+.justifySelfStart { justify-self: start; }
+.justifySelfCenter { justify-self: center; }
+.justifySelfEnd { justify-self: end; }
+.justifySelfRight { justify-self: right; }
+.justifySelfLeft { justify-self: left; }
+
+.justifySelfFlexStart { justify-self: flex-start; }
+.justifySelfFlexEnd { justify-self: flex-end; }
+
+.justifySelfSelfStart { justify-self: self-start; }
+.justifySelfSelfEnd { justify-self: self-end; }
+
+.justifySelfCenterSafe { justify-self: center safe; }
+.justifySelfCenterUnsafe { justify-self: center unsafe; }
+
+/* justify-items */
+.justifyItemsAuto { justify-items: auto; }
+.justifyItemsStretch { justify-items: stretch; }
+.justifyItemsStart { justify-items: start; }
+.justifyItemsCenter { justify-items: center; }
+.justifyItemsEnd { justify-items: end; }
+
+.justifyItemsCenterSafe { justify-items: center safe; }
+.justifyItemsCenterUnsafe { justify-items: center unsafe; }
+.justifyItemsEndSafe { justify-items: end safe; }
+.justifyItemsEndUnsafe { justify-items: end unsafe; }
+
</ins><span class="cx"> /* justify-content */
</span><span class="cx"> .justifyContentBaseline { justify-content: baseline; }
</span><span class="cx"> .justifyContentLastBaseline { justify-content: last-baseline; }
</span><span class="lines">@@ -81,3 +125,63 @@
</span><span class="cx">     align-self: stretch;
</span><span class="cx">     justify-self: stretch;
</span><span class="cx"> }
</span><ins>+
+/* Both align-self and justify-self */
+.selfStretch {
+    align-self: stretch;
+    justify-self: stretch;
+}
+
+/* Both align-content and justify-content */
+.contentStart {
+    align-content: start;
+    justify-content: start;
+}
+.contentCenter {
+    align-content: center;
+    justify-content: center;
+}
+.contentEnd {
+    align-content: end;
+    justify-content: end;
+}
+
+.contentCenterSafe {
+    align-content: center safe;
+    justify-content: center safe;
+}
+
+.contentCenterUnsafe {
+    align-content: center unsafe;
+    justify-content: center unsafe;
+}
+
+.contentEndSafe {
+    align-content: end safe;
+    justify-content: end safe;
+}
+
+.contentEndUnsafe {
+    align-content: end unsafe;
+    justify-content: end unsafe;
+}
+
+.contentSpaceBetween {
+    justify-content: space-between;
+    align-content: space-between;
+}
+
+.contentSpaceAround {
+    justify-content: space-around;
+    align-content: space-around;
+}
+
+.contentSpaceEvenly {
+    justify-content: space-evenly;
+    align-content: space-evenly;
+}
+
+.contentStretch {
+    justify-content: stretch;
+    align-content: stretch;
+}
</ins></span></pre></div>
<a id="trunkLayoutTestsfastcssgridlayoutresourcesgridcss"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css-grid-layout/resources/grid.css (196818 => 196819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css-grid-layout/resources/grid.css        2016-02-19 13:13:49 UTC (rev 196818)
+++ trunk/LayoutTests/fast/css-grid-layout/resources/grid.css        2016-02-19 13:25:49 UTC (rev 196819)
</span><span class="lines">@@ -3,13 +3,6 @@
</span><span class="cx">     background-color: grey;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-.indefiniteSizeGrid {
-    display: -webkit-grid;
-    background-color: grey;
-    width: -webkit-min-content;
-    height: auto;
-}
-
</del><span class="cx"> .inline-grid {
</span><span class="cx">     display: -webkit-inline-grid;
</span><span class="cx">     background-color: grey;
</span><span class="lines">@@ -316,21 +309,24 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> .verticalRL {
</span><ins>+    writing-mode: vertical-rl;
</ins><span class="cx">     -webkit-writing-mode: vertical-rl;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> .verticalLR {
</span><ins>+    writing-mode: vertical-lr;
</ins><span class="cx">     -webkit-writing-mode: vertical-lr;
</span><span class="cx"> }
</span><del>-
</del><ins>+.horizontalTB {
+    writing-mode: horizontal-tb;
+    -webkit-writing-mode: horizontal-tb;
+}
</ins><span class="cx"> .horizontalBT {
</span><ins>+    writing-mode: horizontal-bt;
</ins><span class="cx">     -webkit-writing-mode: horizontal-bt;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> .directionRTL {
</span><span class="cx">     direction: rtl;
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> .directionLTR {
</span><span class="cx">     direction: ltr;
</span><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>