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: 100px 100px / 300px; | 8 grid: 300px / 100px 100px; |
9 width: 200px; | 9 width: 200px; |
10 height: 300px; | 10 height: 300px; |
11 background-color: red; | |
12 } | 11 } |
13 .item1 { | 12 .item1 { |
14 grid-row: 1; | 13 grid-row: 1; |
15 grid-column: 1; | 14 grid-column: 1; |
16 align-self: stretch; | 15 align-self: stretch; |
17 background-color: green; | 16 background-color: green; |
18 } | 17 } |
19 .item2 { | 18 .item2 { |
20 grid-row: 1; | 19 grid-row: 1; |
21 grid-column: 2; | 20 grid-column: 2; |
22 align-self: stretch; | 21 align-self: stretch; |
23 background-color: green; | 22 background-color: green; |
24 } | 23 } |
25 </style> | 24 </style> |
26 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> | 25 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> |
27 <div id="container"> | 26 <div id="container"> |
28 <div class="item1"> | 27 <div class="item1"> |
29 <div style="height: 50px"></div> | 28 <div style="height: 50px"></div> |
30 </div> | 29 </div> |
31 <div class="item2"> | 30 <div class="item2"> |
32 <div style="height: 50px"></div> | 31 <div style="height: 50px"></div> |
33 </div> | 32 </div> |
34 </div> | 33 </div> |
OLD | NEW |