48 lines
1.3 KiB
HTML
48 lines
1.3 KiB
HTML
<!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: 200px 200px;
|
|
margin-top: 10px;
|
|
}
|
|
.red {
|
|
background-color: red;
|
|
}
|
|
.green {
|
|
background-color: green;
|
|
}
|
|
.positiveZIndex {
|
|
z-index: 10;
|
|
}
|
|
.negativeZIndex {
|
|
z-index: -5;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p>This test checks that grid items with 'z-index' do produce a stacking context and that we honor the property.</p>
|
|
<p>For this test to pass, there should be no red below.</p>
|
|
|
|
<div class="grid fit-content">
|
|
<div class="sizedToGridArea green positiveZIndex firstRowFirstColumn"></div>
|
|
<div class="sizedToGridArea red firstRowFirstColumn"></div>
|
|
</div>
|
|
|
|
<div class="grid fit-content">
|
|
<div class="sizedToGridArea green firstRowFirstColumn"></div>
|
|
<div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div>
|
|
</div>
|
|
|
|
<div class="grid fit-content">
|
|
<div class="sizedToGridArea green firstRowBothColumn"></div>
|
|
<div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div>
|
|
<div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|