OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel
="stylesheet"> |
4 <link href="resources/grid.css" rel="stylesheet"> | 5 <link href="resources/grid.css" rel="stylesheet"> |
5 <style> | 6 <style> |
6 .grid { | 7 .grid { |
7 grid-template-rows: 100px; | 8 grid-template-rows: 100px; |
8 grid-template-columns: 200px 200px; | 9 grid-template-columns: 200px 200px; |
9 width: -webkit-fit-content; | |
10 margin-top: 10px; | 10 margin-top: 10px; |
11 } | 11 } |
12 .red { | 12 .red { |
13 background-color: red; | 13 background-color: red; |
14 } | 14 } |
15 .green { | 15 .green { |
16 background-color: green; | 16 background-color: green; |
17 } | 17 } |
18 .positiveZIndex { | 18 .positiveZIndex { |
19 z-index: 10; | 19 z-index: 10; |
20 } | 20 } |
21 .negativeZIndex { | 21 .negativeZIndex { |
22 z-index: -5; | 22 z-index: -5; |
23 } | 23 } |
24 </style> | 24 </style> |
25 </head> | 25 </head> |
26 <body> | 26 <body> |
27 <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> |
28 <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> |
29 | 29 |
30 <div class="grid"> | 30 <div class="grid fit-content"> |
31 <div class="sizedToGridArea green positiveZIndex firstRowFirstColumn"></div> | 31 <div class="sizedToGridArea green positiveZIndex firstRowFirstColumn"></div> |
32 <div class="sizedToGridArea red firstRowFirstColumn"></div> | 32 <div class="sizedToGridArea red firstRowFirstColumn"></div> |
33 </div> | 33 </div> |
34 | 34 |
35 <div class="grid"> | 35 <div class="grid fit-content"> |
36 <div class="sizedToGridArea green firstRowFirstColumn"></div> | 36 <div class="sizedToGridArea green firstRowFirstColumn"></div> |
37 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> | 37 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> |
38 </div> | 38 </div> |
39 | 39 |
40 <div class="grid"> | 40 <div class="grid fit-content"> |
41 <div class="sizedToGridArea green firstRowBothColumn"></div> | 41 <div class="sizedToGridArea green firstRowBothColumn"></div> |
42 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> | 42 <div class="sizedToGridArea red negativeZIndex firstRowFirstColumn"></div> |
43 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> | 43 <div class="sizedToGridArea red negativeZIndex firstRowSecondColumn"></div> |
44 </div> | 44 </div> |
45 | 45 |
46 </body> | 46 </body> |
47 </html> | 47 </html> |
OLD | NEW |