blob: 4bca193cb4fb2936da12a2e444a4248502098eac [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
<link href="resources/grid.css" rel="stylesheet">
<style>
.grid {
grid-template-rows: 100px;
grid-template-columns: 100px;
}
.sizedToGridArea {
background-color: green;
}
.red {
background-color: red;
}
.negativeOrder {
-webkit-order: -1;
}
.positiveOrder {
-webkit-order: 10;
}
</style>
</head>
<body>
<p>This test checks that 'order' changes the paint ordering.</p>
<p>There should be 2 green squares below.</p>
<div class="grid fit-content">
<div class="sizedToGridArea firstRowFirstColumn"></div>
<div class="sizedToGridArea firstRowFirstColumn negativeOrder red"></div>
</div>
<div class="grid fit-content">
<div class="sizedToGridArea firstRowFirstColumn positiveOrder"></div>
<div class="sizedToGridArea firstRowFirstColumn red"></div>
</div>
</body>
</html>