| 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; | |
| 12 } | 11 } |
| 13 .red { | 12 .red { |
| 14 background-color: red; | 13 background-color: red; |
| 15 } | 14 } |
| 16 .green { | 15 .green { |
| 17 background-color: green; | 16 background-color: green; |
| 18 } | 17 } |
| 19 .positiveZIndex { | 18 .positiveZIndex { |
| 20 z-index: 10; | 19 z-index: 10; |
| 21 } | 20 } |
| 22 .negativeZIndex { | 21 .negativeZIndex { |
| 23 z-index: -5; | 22 z-index: -5; |
| 24 } | 23 } |
| 25 </style> | 24 </style> |
| 26 </head> | 25 </head> |
| 27 <body> | 26 <body> |
| 28 <p>This test checks that grid items with 'z-index' do produce a stacking context
and that we honor the property.</p> | 27 <p>This test checks that grid items with 'z-index' do produce a stacking context
and that we honor the property.</p> |
| 29 <p>For this test to pass, there should be no red below.</p> | 28 <p>For this test to pass, there should be no red below.</p> |
| 30 | 29 |
| 31 <div class="grid"> | 30 <div class="grid"> |
| 32 <div class="sizedToGridArea green positiveZIndex"></div> | 31 <div class="sizedToGridArea green positiveZIndex firstRowFirstColumn"></div> |
| 33 <div class="sizedToGridArea red"></div> | 32 <div class="sizedToGridArea red firstRowFirstColumn"></div> |
| 34 </div> | 33 </div> |
| 35 | 34 |
| 36 <div class="grid"> | 35 <div class="grid"> |
| 37 <div class="sizedToGridArea green"></div> | 36 <div class="sizedToGridArea green firstRowFirstColumn"></div> |
| 38 <div class="sizedToGridArea red negativeZIndex"></div> | 37 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> |
| 39 </div> | 38 </div> |
| 40 | 39 |
| 41 <div class="grid"> | 40 <div class="grid"> |
| 42 <div class="sizedToGridArea green firstRowBothColumn"></div> | 41 <div class="sizedToGridArea green firstRowBothColumn"></div> |
| 43 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> | 42 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> |
| 44 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> | 43 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> |
| 45 </div> | 44 </div> |
| 46 | 45 |
| 47 </body> | 46 </body> |
| 48 </html> | 47 </html> |
| OLD | NEW |