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: 300px / 100px; | 8 grid: 300px / 100px 100px; |
9 width: 200px; | 9 width: 200px; |
10 height: 300px; | 10 height: 300px; |
11 background-color: red; | 11 background-color: red; |
12 } | 12 } |
13 .item { | 13 .item1 { |
14 grid-row: 1; | 14 grid-row: 1; |
15 grid-column: 1; | 15 grid-column: 1; |
16 align-self: stretch; | 16 align-self: start; |
| 17 height: 300px; |
| 18 background-color: green; |
| 19 } |
| 20 .item2 { |
| 21 grid-row: 1; |
| 22 grid-column: 2; |
| 23 align-self: start; |
| 24 height: 300px; |
17 background-color: green; | 25 background-color: green; |
18 } | 26 } |
19 </style> | 27 </style> |
20 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 28 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
21 <div id="container"> | 29 <div id="container"> |
22 <div class="item"> | 30 <div id="item1" class="item1"></div> |
23 <div style="height: 300px"></div> | 31 <div id="item2" class="item2"></div> |
24 </div> | |
25 </div> | 32 </div> |
OLD | NEW |