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