OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <script src="resources/text-based-repaint.js"></script> | |
3 <script> | |
4 function repaintTest() { | |
5 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | |
6 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; | |
7 } | |
8 onload = runRepaintTest; | |
9 </script> | |
10 <style> | 2 <style> |
11 .container { | 3 .container { |
12 width: 200px; | 4 width: 200px; |
13 height: 300px; | 5 height: 300px; |
14 background-color: blue; | 6 background-color: blue; |
15 } | 7 } |
16 .item { | 8 .item { |
17 background-color: green; | 9 background-color: green; |
18 border: solid thin blue; | 10 border: solid thin blue; |
| 11 align-self: stretch; |
19 } | 12 } |
20 </style> | 13 </style> |
21 There should be no invalidations when align-self changes on a non-flex container
. | 14 There should be no invalidations when align-self changes on a non-flex container
. |
22 <div id="container"> | 15 <div id="container"> |
23 <div class="item"> | 16 <div class="item"> |
24 <div style="height: 100px"></div> | 17 <div style="height: 100px"></div> |
25 </div> | 18 </div> |
26 <div class="item"> | 19 <div class="item"> |
27 <div style="height: 150px"></div> | 20 <div style="height: 150px"></div> |
28 </div> | 21 </div> |
29 </div> | 22 </div> |
OLD | NEW |