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