blob: 1b7b4c618063e5290cec654d7cec8f99267ceea7 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
grid-template-rows: 5px;
grid-template-columns: 10px;
}
.gridAutoFixedFixed {
grid-auto-rows: 30px;
grid-auto-columns: 50px;
}
.gridAutoMinMax {
font: 10px/1 Ahem;
width: 1000px;
grid-auto-rows: minmax(10em, 15px);
grid-auto-columns: minmax(30%, 100px);
}
.gridAutoMinMaxContent {
grid-auto-rows: min-content;
grid-auto-columns: max-content;
}
</style>
</head>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.grid');">
<div>This test checks that grid rows / columns created via the auto-placement algorithm do follow, grid-auto-{rows|columns}.</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoFixedFixed gridAutoFlowRowSparse">
<div class="sizedToGridArea firstRowAutoColumn" data-offset-x="10" data-offset-y="0" data-expected-width="50" data-expected-height="5">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoFixedFixed gridAutoFlowColumnSparse">
<div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-offset-y="5" data-expected-width="10" data-expected-height="30">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoFixedFixed gridAutoFlowRowSparse">
<div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-offset-y="5" data-expected-width="10" data-expected-height="30">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoFixedFixed gridAutoFlowColumnSparse">
<div class="sizedToGridArea firstRowAutoColumn" data-offset-x="10" data-offset-y="0" data-expected-width="50" data-expected-height="5">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMax gridAutoFlowRowSparse">
<div class="sizedToGridArea firstRowAutoColumn" data-offset-x="10" data-offset-y="0" data-expected-width="300" data-expected-height="5">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMax gridAutoFlowColumnSparse">
<div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-offset-y="5" data-expected-width="10" data-expected-height="100">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMax gridAutoFlowRowSparse">
<div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-offset-y="5" data-expected-width="10" data-expected-height="100">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMax gridAutoFlowColumnSparse">
<div class="sizedToGridArea firstRowAutoColumn" data-offset-x="10" data-offset-y="0" data-expected-width="300" data-expected-height="5">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMaxContent gridAutoFlowRowSparse">
<div class="sizedToGridArea firstRowAutoColumn" data-offset-x="10" data-offset-y="0" data-expected-width="120" data-expected-height="5">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMaxContent gridAutoFlowColumnSparse">
<div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-offset-y="5" data-expected-width="10" data-expected-height="20">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMaxContent gridAutoFlowRowSparse">
<div class="sizedToGridArea autoRowFirstColumn" data-offset-x="0" data-offset-y="5" data-expected-width="10" data-expected-height="20">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
<div class="unconstrainedContainer" style="position: relative">
<div class="grid gridAutoMinMaxContent gridAutoFlowColumnSparse">
<div class="sizedToGridArea firstRowAutoColumn" data-offset-x="10" data-offset-y="0" data-expected-width="120" data-expected-height="5">XXXXX XXXXXX</div>
<div class="sizedToGridArea firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="10" data-expected-height="5"></div>
</div>
</div>
</body>
</html>