OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <link href="resources/grid.css" rel="stylesheet"> | 4 <link href="resources/grid.css" rel="stylesheet"> |
5 <style> | 5 <style> |
6 .grid { | 6 .grid { |
7 grid-template-rows: 100px; | 7 grid-template-rows: 100px; |
8 grid-template-columns: 200px 200px; | 8 grid-template-columns: 200px 200px; |
9 width: -webkit-fit-content; | 9 width: -webkit-fit-content; |
10 margin-top: 10px; | 10 margin-top: 10px; |
| 11 grid-auto-flow: stack; |
11 } | 12 } |
12 .red { | 13 .red { |
13 background-color: red; | 14 background-color: red; |
14 } | 15 } |
15 .green { | 16 .green { |
16 background-color: green; | 17 background-color: green; |
17 } | 18 } |
18 .positiveZIndex { | 19 .positiveZIndex { |
19 z-index: 10; | 20 z-index: 10; |
20 } | 21 } |
(...skipping 17 matching lines...) Expand all Loading... |
38 </div> | 39 </div> |
39 | 40 |
40 <div class="grid"> | 41 <div class="grid"> |
41 <div class="sizedToGridArea green firstRowBothColumn"></div> | 42 <div class="sizedToGridArea green firstRowBothColumn"></div> |
42 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> | 43 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> |
43 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> | 44 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> |
44 </div> | 45 </div> |
45 | 46 |
46 </body> | 47 </body> |
47 </html> | 48 </html> |
OLD | NEW |