blob: 0a96fa86de3ffe65c0eea839d0af4ed12f9ca13d [file] [log] [blame]
<!DOCTYPE HTML>
<link href="resources/grid.css" rel="stylesheet">
<link href="../css-intrinsic-dimensions/resources/height-keyword-classes.css" rel="stylesheet">
<style>
.grid {
margin: 3px;
grid: minmax(10px, 1fr) minmax(10px, 4fr) / 50px;
grid-row-gap: 33px;
border: 5px dashed;
padding: 2px;
}
.float { float: left; }
.item:nth-child(1) { background-color: purple; }
.item:nth-child(2) { background-color: blue; }
</style>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid')">
<div id="log"></div>
<p>This test PASS if all the grids in the same row look the same.</p>
<div class="grid float" style="max-height: 70px" data-expected-width="64" data-expected-height="84">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="27"></div>
</div>
<div class="grid float" style="min-height: 70px; max-height: 60px" data-expected-width="64" data-expected-height="84">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="27"></div>
</div>
<div class="grid float" style="height: 70px" data-expected-width="64" data-expected-height="84">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="27"></div>
</div>
<br clear="all">
<div class="grid float" style="min-height: 108px" data-expected-width="64" data-expected-height="122">
<div class="item" data-expected-width="50" data-expected-height="15"></div>
<div class="item" data-expected-width="50" data-expected-height="60"></div>
</div>
<div class="grid float" style="min-height: 108px; max-height: 60px" data-expected-width="64" data-expected-height="122">
<div class="item" data-expected-width="50" data-expected-height="15"></div>
<div class="item" data-expected-width="50" data-expected-height="60"></div>
</div>
<div class="grid float" style="height: 108px" data-expected-width="64" data-expected-height="122">
<div class="item" data-expected-width="50" data-expected-height="15"></div>
<div class="item" data-expected-width="50" data-expected-height="60"></div>
</div>
<br clear="all">
<div class="grid float min-height-max-content" data-expected-width="64" data-expected-height="97">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="40"></div>
</div>
<div class="grid float min-height-max-content max-height-min-content" data-expected-width="64" data-expected-height="97">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="40"></div>
</div>
<div class="grid float max-content" data-expected-width="64" data-expected-height="97">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="40"></div>
</div>
<br clear="all">
<div class="float min-content">
<div class="grid min-height-max-content" data-expected-width="64" data-expected-height="97">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="40"></div>
</div>
</div>
<div class="float max-content">
<div class="grid min-height-max-content max-height-min-content" data-expected-width="64" data-expected-height="97">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="40"></div>
</div>
</div>
<div class="float fit-content">
<div class="grid max-content" data-expected-width="64" data-expected-height="97">
<div class="item" data-expected-width="50" data-expected-height="10"></div>
<div class="item" data-expected-width="50" data-expected-height="40"></div>
</div>
</div>
</body>