blob: 1c8eedbd0f7de5052334ce5463be797da896d2fe [file] [log] [blame]
<!DOCTYPE html>
if (window.testRunner)
testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
<link href="resources/grid.css" rel="stylesheet">
.gridAutoContent {
/* grid-columns is left unset so that the grid item's column is implicit. */
grid-rows: 50px;
.firstRowFirstColumn {
font: 10px/1 Ahem;
/* Make us fit our grid area. */
width: 100%;
height: 100%;
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.gridAutoContent');">
<p>Test that resolving auto tracks on grid items works properly.</p>
<div class="constrainedContainer">
<div class="grid gridAutoContent">
<div class="firstRowFirstColumn" data-expected-width="30" data-expected-height="50">XXX XXX XXX</div>
<!-- Allow the extra logical space distribution to occur. -->
<div style="width: 40px; height: 10px">
<div class="grid gridAutoContent">
<div class="firstRowFirstColumn" data-expected-width="40" data-expected-height="50">XX XX XX XX XX XX</div>
<div style="width: 100px; height: 10px;">
<div class="grid gridAutoContent">
<div class="firstRowFirstColumn" data-expected-width="50" data-expected-height="50">XXXXX</div>