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