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