blob: 1fbd9b8408924fcbae1dfba4d37a6a959aa24ff0 [file] [log] [blame]
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
grid-template: 50px 1fr / 1fr;
position: absolute;
left: 50px;
top: 50px;
width: 200px;
height: 200px;
border: 7px solid #ccc;
font: 10px/1 Ahem;
}
.row1 {
grid-row-start: 1;
background-color: yellow;
}
.row2 {
grid-row-start: 2;
background-color: cyan;
}
</style>
<p>Items should extend to fill the width of the absolutely positioned grid container.</p>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid')">
<div class="grid">
<div class="row1" data-expected-height="50" data-expected-width="200">XXX X</div>
<div class="row2" data-expected-height="150" data-expected-width="200">XX XXX XX</div>
</div>
</body>