OLD | NEW |
1 <!-- Based on fast/repaint/align-self-change-keeping-geometry.html --> | 1 <!-- Based on fast/repaint/align-self-change-keeping-geometry.html --> |
2 <!DOCTYPE HTML> | 2 <!DOCTYPE HTML> |
3 <script src="resources/paint-invalidation-test.js"></script> | 3 <script src="resources/paint-invalidation-test.js"></script> |
4 <script> | 4 <script> |
5 window.expectedPaintInvalidationObjects = [ | |
6 ]; | |
7 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
8 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | 6 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; |
9 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; | 7 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; |
10 } | 8 } |
11 onload = runPaintInvalidationTest; | 9 onload = runPaintInvalidationTest; |
12 </script> | 10 </script> |
13 <style> | 11 <style> |
14 .flex { | 12 .flex { |
15 display: flex; | 13 display: flex; |
16 align-items: flex-start; | 14 align-items: flex-start; |
17 width: 200px; | 15 width: 200px; |
18 height: 300px; | 16 height: 300px; |
19 background-color: red; | 17 background-color: red; |
20 } | 18 } |
21 .item { | 19 .item { |
22 background-color: green; | 20 background-color: green; |
23 border: solid thin blue; | 21 border: solid thin blue; |
24 width: 100px; | 22 width: 100px; |
25 height: 300px; | 23 height: 300px; |
26 } | 24 } |
27 </style> | 25 </style> |
28 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> | 26 <p style="height: 20px">There should be no invalidations because align-self styl
e change causes no visual change.</p> |
29 <div class="flex"> | 27 <div class="flex"> |
30 <div class="item"></div> | 28 <div class="item"></div> |
31 <div class="item"></div> | 29 <div class="item"></div> |
32 </div> | 30 </div> |
OLD | NEW |