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 .flex { | 3 .flex { |
12 display: flex; | 4 display: flex; |
13 align-items: flex-start; | 5 align-items: flex-start; |
14 width: 200px; | 6 width: 200px; |
15 height: 300px; | 7 height: 300px; |
16 background-color: red; | 8 background-color: red; |
17 } | 9 } |
18 .item { | 10 .item { |
19 background-color: green; | 11 background-color: green; |
20 border: solid thin blue; | 12 border: solid thin blue; |
21 width: 100px; | 13 width: 100px; |
22 height: 300px; | 14 height: 300px; |
| 15 align-self: stretch; |
23 } | 16 } |
24 </style> | 17 </style> |
25 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 18 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
26 <div class="flex"> | 19 <div class="flex"> |
27 <div class="item"></div> | 20 <div class="item"></div> |
28 <div class="item"></div> | 21 <div class="item"></div> |
29 </div> | 22 </div> |
OLD | NEW |