OLD | NEW |
1 <!-- Based on fast/repaint/intermediate-layout-position-clip.html --> | 1 <!-- Based on fast/repaint/intermediate-layout-position-clip.html --> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title></title> | 4 <title></title> |
5 <style type="text/css"> | 5 <style type="text/css"> |
6 .float { float: right; height: 40px; width: 40px; } | 6 .float { float: right; height: 40px; width: 40px; } |
7 .test { height: 200px; background-color: aliceblue } | 7 .test { height: 200px; background-color: aliceblue } |
8 </style> | 8 </style> |
9 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | 9 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> |
10 <script type="text/javascript"> | 10 <script type="text/javascript"> |
11 window.expectedPaintInvalidationObjects = [ | |
12 "LayoutBlockFlow DIV id='target'", | |
13 ]; | |
14 function paintInvalidationTest() | 11 function paintInvalidationTest() |
15 { | 12 { |
16 document.getElementById('target').style.height='20px'; | 13 document.getElementById('target').style.height='20px'; |
17 } | 14 } |
18 </script> | 15 </script> |
19 </head> | 16 </head> |
20 <body onload="runPaintInvalidationTest()"> | 17 <body onload="runPaintInvalidationTest()"> |
21 <div id="scroller" style="overflow: hidden; height: 40px"> | 18 <div id="scroller" style="overflow: hidden; height: 40px"> |
22 <div class="test"> | 19 <div class="test"> |
23 <div class="float"></div> | 20 <div class="float"></div> |
24 <div style="clear: right; padding-bottom: 10px;"> | 21 <div style="clear: right; padding-bottom: 10px;"> |
25 <div style="height: 40px; width: 40px; background-color: red;" i
d="target"> | 22 <div style="height: 40px; width: 40px; background-color: red;" i
d="target"> |
26 </div> | 23 </div> |
27 </div> | 24 </div> |
28 </div> | 25 </div> |
29 </div> | 26 </div> |
30 <script>scroller.scrollTop = 60;</script> | 27 <script>scroller.scrollTop = 60;</script> |
31 </body> | 28 </body> |
32 </html> | 29 </html> |
OLD | NEW |