| 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 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 .item1 { | 13 .item1 { |
| 14 grid-row: 1; | 14 grid-row: 1; |
| 15 grid-column: 1; | 15 grid-column: 1; |
| 16 align-self: start; | 16 align-self: start; |
| 17 height: 300px; | 17 height: 300px; |
| 18 width: 100px; |
| 18 background-color: green; | 19 background-color: green; |
| 19 } | 20 } |
| 20 .item2 { | 21 .item2 { |
| 21 grid-row: 1; | 22 grid-row: 1; |
| 22 grid-column: 2; | 23 grid-column: 2; |
| 23 align-self: start; | 24 align-self: start; |
| 25 background-color: green; |
| 24 height: 300px; | 26 height: 300px; |
| 27 width: 100px; |
| 28 } |
| 29 .item3 { |
| 30 grid-row: 1; |
| 31 grid-column: 2; |
| 32 align-self: end; |
| 25 background-color: green; | 33 background-color: green; |
| 34 height: 300px; |
| 35 width: 100px; |
| 26 } | 36 } |
| 27 </style> | 37 </style> |
| 28 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 38 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
| 29 <div id="container"> | 39 <div id="container"> |
| 30 <div id="item1" class="item1"></div> | 40 <div class="item1"> |
| 31 <div id="item2" class="item2"></div> | 41 <div style="height: 300px;"></div> |
| 42 </div> |
| 43 <div class="item2"></div> |
| 44 <div class="item3"></div> |
| 32 </div> | 45 </div> |
| OLD | NEW |