OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <style> | 2 <style> |
3 body { | 3 body { |
4 margin: 0; | 4 margin: 0; |
5 } | 5 } |
6 #container { | 6 #container { |
7 display: grid; | 7 display: grid; |
8 grid: 200px / 150px 150px; | 8 grid: 150px 150px / 200px; |
9 align-items: end safe; | 9 align-items: end safe; |
10 width: 200px; | 10 width: 200px; |
11 height: 300px; | 11 height: 300px; |
12 background-color: red; | 12 background-color: red; |
13 } | 13 } |
14 .item1 { | 14 .item1 { |
15 grid-row: 1; | 15 grid-row: 1; |
16 grid-column: 1; | 16 grid-column: 1; |
17 background-color: green; | 17 background-color: green; |
18 } | 18 } |
19 .item2 { | 19 .item2 { |
20 grid-row: 2; | 20 grid-row: 2; |
21 grid-column: 1; | 21 grid-column: 1; |
22 background-color: green; | 22 background-color: green; |
23 } | 23 } |
24 </style> | 24 </style> |
25 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> | 25 <p style="height: 20px">Tests invalidation on align-items style change (just ove
rflow). Passes if there is no red.</p> |
26 <div id="container"> | 26 <div id="container"> |
27 <div class="item1"> | 27 <div class="item1"> |
28 <div style="height: 200px"></div> | 28 <div style="height: 200px"></div> |
29 </div> | 29 </div> |
30 <div class="item2"> | 30 <div class="item2"> |
31 <div style="height: 100px"></div> | 31 <div style="height: 100px"></div> |
32 </div> | 32 </div> |
33 </div> | 33 </div> |
OLD | NEW |