OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="resources/default.css"></style> | 3 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"></
style> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | |
5 <script type="text/javascript"> | 4 <script type="text/javascript"> |
6 if (window.testRunner) | 5 onload = function() |
7 testRunner.dumpAsTextWithPixelResults(); | |
8 | |
9 function repaintTest() | |
10 { | 6 { |
11 var moveMeElement = document.getElementById('moveMe'); | 7 var moveMeElement = document.getElementById('moveMe'); |
12 moveMeElement.scrollTop = 100; | 8 moveMeElement.scrollTop = 100; |
13 moveMeElement.scrollLeft = 50; | 9 moveMeElement.scrollLeft = 50; |
14 } | 10 } |
15 </script> | 11 </script> |
16 </head> | 12 </head> |
17 <body style="height:2000px;" onload="runRepaintTest()"> | 13 <body style="height:2000px;"> |
18 <!-- You should see 1 green rectangle rotated in the output and no red. --> | 14 <!-- You should see 1 green rectangle rotated in the output and no red. --> |
19 <div style="top: 150px; left: 100px" class="absolute clipped rotated"> | 15 <div style="top: 150px; left: 100px" class="absolute clipped rotated"> |
20 <div id="moveMe" class="absolute clipped" style="top: 0px; left: 0px;"> | 16 <div id="moveMe" class="absolute clipped" style="top: 0px; left: 0px;"> |
21 <div class="absolute green" style="top: 100px; left: 50px"></div> | 17 <div class="absolute green" style="top: 100px; left: 50px"></div> |
22 <div class="absolute red" style="top: 0px; left: 0px;"></div> | |
23 </div> | 18 </div> |
24 </div> | 19 </div> |
25 </body> | 20 </body> |
26 </html> | 21 </html> |
OLD | NEW |