17 background-color: #CCC;
21 background-color: #
999;
25 background-color: #
333;
28 .firstRowFirstColumn {
33 .secondRowFirstColumn {
43 #grid1 .firstRowFirstColumn {
47 #grid1 .secondRowFirstColumn {
51 #grid1 .bothRowFirstColumn {
55 #grid2 .firstRowFirstColumn {
59 #grid2 .secondRowFirstColumn {
63 #grid2 .bothRowFirstColumn {
67 #grid3 .firstRowFirstColumn {
71 #grid3 .secondRowFirstColumn {
75 #grid3 .bothRowFirstColumn {
79 #grid4 .firstRowFirstColumn {
83 #grid4 .secondRowFirstColumn {
87 #grid4 .bothRowFirstColumn {
91 #grid5 .firstRowFirstColumn {
95 #grid5 .secondRowFirstColumn {
99 #grid5 .bothRowFirstColumn {
103 #grid6 .firstRowFirstColumn {
107 #grid6 .secondRowFirstColumn {
111 #grid6 .bothRowFirstColumn {
118 The test shows
6 grids each of them with
3 items sorted differently in the DOM.
<br>
119 Grid items should be painted from lighter (bottom) to darker (top) according to DOM ordering.
121 <div id=
"grid1" class=
"grid">
122 <div class=
"item firstRowFirstColumn"></div>
123 <div class=
"item secondRowFirstColumn"></div>
124 <div class=
"item bothRowFirstColumn"></div>
126 <div id=
"grid2" class=
"grid">
127 <div class=
"item secondRowFirstColumn"></div>
128 <div class=
"item bothRowFirstColumn"></div>
129 <div class=
"item firstRowFirstColumn"></div>
131 <div id=
"grid3" class=
"grid">
132 <div class=
"item bothRowFirstColumn"></div>
133 <div class=
"item firstRowFirstColumn"></div>
134 <div class=
"item secondRowFirstColumn"></div>
136 <div id=
"grid4" class=
"grid">
137 <div class=
"item secondRowFirstColumn"></div>
138 <div class=
"item firstRowFirstColumn"></div>
139 <div class=
"item bothRowFirstColumn"></div>
141 <div id=
"grid5" class=
"grid">
142 <div class=
"item firstRowFirstColumn"></div>
143 <div class=
"item bothRowFirstColumn"></div>
144 <div class=
"item secondRowFirstColumn"></div>
146 <div id=
"grid6" class=
"grid">
147 <div class=
"item bothRowFirstColumn"></div>
148 <div class=
"item secondRowFirstColumn"></div>
149 <div class=
"item firstRowFirstColumn"></div>