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