OLD | NEW |
1 <!-- Based on fast/repaint/align-self-change-grid.html --> | 1 <!-- Based on fast/repaint/align-self-change-grid.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='item1'", | |
7 "LayoutBlockFlow DIV", | |
8 "LayoutBlockFlow DIV class='item2'", | |
9 ]; | |
10 function paintInvalidationTest() { | 5 function paintInvalidationTest() { |
11 document.getElementsByClassName('item1')[0].style.alignSelf = 'stretch'; | 6 document.getElementsByClassName('item1')[0].style.alignSelf = 'stretch'; |
12 document.getElementsByClassName('item2')[0].style.alignSelf = 'stretch'; | 7 document.getElementsByClassName('item2')[0].style.alignSelf = 'stretch'; |
13 } | 8 } |
14 onload = runPaintInvalidationTest; | 9 onload = runPaintInvalidationTest; |
15 </script> | 10 </script> |
16 <style> | 11 <style> |
17 body { | 12 body { |
18 margin: 0; | 13 margin: 0; |
19 } | 14 } |
(...skipping 19 matching lines...) Expand all Loading... |
39 </style> | 34 </style> |
40 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> | 35 <p style="height: 20px">Tests invalidation on align-self style change. Passes if
there is no red.</p> |
41 <div id="container"> | 36 <div id="container"> |
42 <div class="item1"> | 37 <div class="item1"> |
43 <div style="height: 50px"></div> | 38 <div style="height: 50px"></div> |
44 </div> | 39 </div> |
45 <div class="item2"> | 40 <div class="item2"> |
46 <div style="height: 50px"></div> | 41 <div style="height: 50px"></div> |
47 </div> | 42 </div> |
48 </div> | 43 </div> |
OLD | NEW |