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 .flex { | 6 .flex { |
7 display: flex; | 7 display: flex; |
8 align-items: flex-start; | 8 align-items: flex-start; |
9 width: 200px; | 9 width: 200px; |
10 height: 300px; | 10 height: 300px; |
11 background-color: red; | 11 background-color: red; |
12 } | 12 } |
13 .item { | 13 .item { |
14 background-color: green; | 14 background-color: green; |
15 border: solid thin blue; | 15 border: solid thin blue; |
16 width: 100px; | 16 width: 100px; |
17 align-self: stretch; | 17 align-self: stretch; |
18 } | 18 } |
19 </style> | 19 </style> |
20 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> | 20 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> |
21 <div class="flex"> | 21 <div class="flex"> |
22 <div class="item"> | 22 <div class="item"> |
23 <div style="height: 100px"></div> | 23 <div style="height: 100px"></div> |
24 </div> | 24 </div> |
25 <div class="item"> | 25 <div class="item"> |
26 <div style="height: 150px"></div> | 26 <div style="height: 150px"></div> |
27 </div> | 27 </div> |
28 </div> | 28 </div> |
OLD | NEW |