OLD | NEW |
1 <!-- Based on fast/box-shadow/shadow-box-resize.html --> | 1 <!-- Based on fast/box-shadow/shadow-box-resize.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 (positioned) DIV id='target1'", | |
7 "LayoutBlockFlow (positioned) DIV id='target2'", | |
8 "LayoutBlockFlow (positioned) DIV id='target3'", | |
9 "LayoutBlockFlow (positioned) DIV id='target4'", | |
10 ]; | |
11 function paintInvalidationTest() | 5 function paintInvalidationTest() |
12 { | 6 { |
13 document.getElementById('target1').style.width = '150px'; | 7 document.getElementById('target1').style.width = '150px'; |
14 document.getElementById('target2').style.width = '50px'; | 8 document.getElementById('target2').style.width = '50px'; |
15 document.getElementById('target3').style.height = '150px'; | 9 document.getElementById('target3').style.height = '150px'; |
16 document.getElementById('target4').style.height = '50px'; | 10 document.getElementById('target4').style.height = '50px'; |
17 } | 11 } |
18 window.onload = runPaintInvalidationTest; | 12 window.onload = runPaintInvalidationTest; |
19 </script> | 13 </script> |
20 <style> | 14 <style> |
(...skipping 21 matching lines...) Expand all Loading... |
42 } | 36 } |
43 #target4 { | 37 #target4 { |
44 top: 300px; | 38 top: 300px; |
45 left: 300px; | 39 left: 300px; |
46 } | 40 } |
47 </style> | 41 </style> |
48 <div id="target1"></div> | 42 <div id="target1"></div> |
49 <div id="target2"></div> | 43 <div id="target2"></div> |
50 <div id="target3"></div> | 44 <div id="target3"></div> |
51 <div id="target4"></div> | 45 <div id="target4"></div> |
OLD | NEW |