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