OLD | NEW |
1 <!-- Based on fast/repaint/align-self-change.html --> | 1 <!-- Based on fast/repaint/align-self-change.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 "LayoutBlockFlow DIV class='item'", | |
7 "LayoutBlockFlow DIV class='item'", | |
8 ]; | |
9 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
10 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; | 6 document.getElementsByClassName('item')[0].style.alignSelf = 'stretch'; |
11 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; | 7 document.getElementsByClassName('item')[1].style.alignSelf = 'stretch'; |
12 } | 8 } |
13 onload = runPaintInvalidationTest; | 9 onload = runPaintInvalidationTest; |
14 </script> | 10 </script> |
15 <style> | 11 <style> |
16 body { | 12 body { |
17 margin: 0; | 13 margin: 0; |
18 } | 14 } |
(...skipping 12 matching lines...) Expand all Loading... |
31 </style> | 27 </style> |
32 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> | 28 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> |
33 <div class="flex"> | 29 <div class="flex"> |
34 <div class="item"> | 30 <div class="item"> |
35 <div style="height: 100px"></div> | 31 <div style="height: 100px"></div> |
36 </div> | 32 </div> |
37 <div class="item"> | 33 <div class="item"> |
38 <div style="height: 150px"></div> | 34 <div style="height: 150px"></div> |
39 </div> | 35 </div> |
40 </div> | 36 </div> |
OLD | NEW |