blob: 7ea26011b98744f7d8a4ae9f1678cf5217020b5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!DOCTYPE html>
<style>
.grid {
display: inline-grid;
background: grey;
grid-template-columns: 50px 50px 50px 50px;
grid-template-rows: 50px 50px;
}
.grid > :nth-child(1) { background: magenta; }
.grid > :nth-child(2) { background: blue; }
.grid > :nth-child(3) { background: yellow; }
.grid > :nth-child(4) { background: green; }
.grid > :nth-child(5) { background: black; }
</style>
<p>This test passes if the black item is positioned in the first column of the second row, since the spec states that we must select the first one among several equally named grid lines.</p>
<div class="grid">
<div style="grid-row: 1; grid-column: 1"></div>
<div style="grid-row: 1; grid-column: 2"></div>
<div style="grid-row: 1; grid-column: 3"></div>
<div style="grid-row: 1; grid-column: 4"></div>
<div style="grid-row: 2; grid-column: 1"></div>
</div>
|