4 <link href=
"resources/grid.css" rel=
"stylesheet">
8 grid-template-columns:
50px;
9 grid-template-rows:
50px
50px;
12 background-color: transparent;
21 background-color: #CCC;
25 background-color: #
999;
29 background-color: #
333;
32 .secondRowFirstColumn {
45 The test shows
6 grids each of them with
3 items sorted differently in the DOM.
<br>
46 Grid items should be painted from lighter (bottom) to darker (top) according to DOM ordering.
49 <div class=
"item firstRowFirstColumn"></div>
50 <div class=
"item secondRowFirstColumn"></div>
51 <div class=
"item bothRowFirstColumn"></div>
54 <div class=
"item secondRowFirstColumn"></div>
55 <div class=
"item bothRowFirstColumn"></div>
56 <div class=
"item firstRowFirstColumn"></div>
59 <div class=
"item bothRowFirstColumn"></div>
60 <div class=
"item firstRowFirstColumn"></div>
61 <div class=
"item secondRowFirstColumn"></div>
64 <div class=
"item secondRowFirstColumn"></div>
65 <div class=
"item firstRowFirstColumn"></div>
66 <div class=
"item bothRowFirstColumn"></div>
69 <div class=
"item firstRowFirstColumn"></div>
70 <div class=
"item bothRowFirstColumn"></div>
71 <div class=
"item secondRowFirstColumn"></div>
74 <div class=
"item bothRowFirstColumn"></div>
75 <div class=
"item secondRowFirstColumn"></div>
76 <div class=
"item firstRowFirstColumn"></div>