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-definition-rows: 100px; | 7 grid-template-rows: 100px; |
8 grid-definition-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 } | 11 } |
12 .green { | 12 .green { |
13 background-color: green; | 13 background-color: green; |
14 } | 14 } |
15 </style> | 15 </style> |
16 </head> | 16 </head> |
17 <body> | 17 <body> |
18 <p>This test checks that grid items with 'z-index' do produce a stacking context
and that we honor the property.</p> | 18 <p>This test checks that grid items with 'z-index' do produce a stacking context
and that we honor the property.</p> |
19 <p>For this test to pass, there should be no red below.</p> | 19 <p>For this test to pass, there should be no red below.</p> |
20 | 20 |
21 <div class="grid"> | 21 <div class="grid"> |
22 <div class="sizedToGridArea green"></div> | 22 <div class="sizedToGridArea green"></div> |
23 </div> | 23 </div> |
24 | 24 |
25 <div class="grid"> | 25 <div class="grid"> |
26 <div class="sizedToGridArea green"></div> | 26 <div class="sizedToGridArea green"></div> |
27 </div> | 27 </div> |
28 | 28 |
29 <div class="grid"> | 29 <div class="grid"> |
30 <div class="sizedToGridArea green firstRowBothColumn"></div> | 30 <div class="sizedToGridArea green firstRowBothColumn"></div> |
31 </div> | 31 </div> |
32 | 32 |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |