OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title></title> | 3 <title></title> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .float { float: right; height: 40px; width: 40px; } | 5 .float { float: right; height: 40px; width: 40px; } |
6 .test { height: 200px; background-color: aliceblue } | 6 .test { height: 200px; background-color: aliceblue } |
7 </style> | 7 </style> |
8 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 8 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 function repaintTest() | 10 function repaintTest() |
11 { | 11 { |
12 document.getElementById('target').style.height='20px'; | 12 document.getElementById('target').style.height='20px'; |
13 } | 13 } |
14 </script> | 14 </script> |
15 </head> | 15 </head> |
16 <body onload="runRepaintAndPixelTest()"> | 16 <body onload="runRepaintAndPixelTest()"> |
17 <div id="scroller" style="overflow: hidden; height: 40px"> | 17 <div id="scroller" style="overflow: hidden; height: 40px"> |
18 <div class="test"> | 18 <div class="test"> |
19 <div class="float"></div> | 19 <div class="float"></div> |
20 <div style="clear: right; padding-bottom: 10px;"> | 20 <div style="clear: right; padding-bottom: 10px;"> |
21 <div style="height: 40px; width: 40px; background-color: red;" i
d="target"> | 21 <div style="height: 40px; width: 40px; background-color: red;" i
d="target"> |
22 </div> | 22 </div> |
23 </div> | 23 </div> |
24 </div> | 24 </div> |
25 </div> | 25 </div> |
26 <script>scroller.scrollTop = 60;</script> | 26 <script>scroller.scrollTop = 60;</script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |