| 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 #parentContainer { | 6 #parentContainer { |
| 7 justify-items: legacy center; | 7 justify-items: legacy center; |
| 8 background-color: orange; | 8 background-color: orange; |
| 9 width: 300px; | 9 width: 300px; |
| 10 height: 400px; | 10 height: 400px; |
| 11 } | 11 } |
| 12 | 12 |
| 13 #container { | 13 #container { |
| 14 display: grid; | 14 display: grid; |
| 15 grid: 100px 100px / 150px 150px; | 15 grid: 150px 150px / 100px 100px; |
| 16 width: 200px; | 16 width: 200px; |
| 17 height: 300px; | 17 height: 300px; |
| 18 background-color: red; | 18 background-color: red; |
| 19 } | 19 } |
| 20 .item1 { | 20 .item1 { |
| 21 grid-row: 1; | 21 grid-row: 1; |
| 22 grid-column: 1; | 22 grid-column: 1; |
| 23 background-color: green; | 23 background-color: green; |
| 24 border: solid thin blue; | 24 border: solid thin blue; |
| 25 width: 50px; | 25 width: 50px; |
| 26 } | 26 } |
| 27 .item2 { | 27 .item2 { |
| 28 grid-row: 1; | 28 grid-row: 1; |
| 29 grid-column: 2; | 29 grid-column: 2; |
| 30 background-color: green; | 30 background-color: green; |
| 31 border: solid thin blue; | 31 border: solid thin blue; |
| 32 width: 50px; | 32 width: 50px; |
| 33 </style> | 33 </style> |
| 34 <p style="height: 20px">Tests invalidation on justify-items style change (legacy
value). Passes if green bars are centerd inside their red container.</p> | 34 <p style="height: 20px">Tests invalidation on justify-items style change (legacy
value). Passes if green bars are centerd inside their red container.</p> |
| 35 <div id="parentContainer"> | 35 <div id="parentContainer"> |
| 36 <div id="container"> | 36 <div id="container"> |
| 37 <div class="item1"> | 37 <div class="item1"> |
| 38 <div style="height: 50px"></div> | 38 <div style="height: 50px"></div> |
| 39 </div> | 39 </div> |
| 40 <div class="item2"> | 40 <div class="item2"> |
| 41 <div style="height: 50px"></div> | 41 <div style="height: 50px"></div> |
| 42 </div> | 42 </div> |
| 43 </div> | 43 </div> |
| 44 </div> | 44 </div> |
| OLD | NEW |