| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="resources/default.css"> | 3 <link rel="stylesheet" href="resources/default.css"> |
| 4 <style> | 4 <style> |
| 5 ::-webkit-scrollbar { |
| 6 width: 0px; |
| 7 height: 0px; |
| 8 } |
| 5 html { | 9 html { |
| 6 overflow: scroll; | 10 overflow: scroll; |
| 7 } | 11 } |
| 8 </style> | 12 </style> |
| 9 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 13 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 10 <script type="text/javascript"> | 14 <script type="text/javascript"> |
| 11 window.enablePixelTesting = true; | 15 window.enablePixelTesting = true; |
| 12 window.onload = function() { | 16 window.onload = function() { |
| 13 window.scrollTo(0, 500); | 17 window.scrollTo(0, 500); |
| 14 runRepaintTest(); | 18 runRepaintTest(); |
| 15 }; | 19 }; |
| 16 | 20 |
| 17 function repaintTest() | 21 function repaintTest() |
| 18 { | 22 { |
| 19 document.getElementById('absoluteDiv').style.top = '700px'; | 23 document.getElementById('absoluteDiv').style.top = '700px'; |
| 20 } | 24 } |
| 21 </script> | 25 </script> |
| 22 </head> | 26 </head> |
| 23 <body style="height:2000px;"> | 27 <body style="height:2000px;"> |
| 24 <!-- You should see 1 green rectangle in the output and no red. --> | 28 <!-- You should see 1 green rectangle in the output and no red. --> |
| 25 <div style="top: 200px; left: 100px;" class="fixed red"></div> | 29 <div style="top: 200px; left: 100px;" class="fixed red"></div> |
| 26 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> | 30 <div id="absoluteDiv" style="top: 500px; left:100px;" class="absolute green"
></div> |
| 27 </body> | 31 </body> |
| 28 </html> | 32 </html> |
| OLD | NEW |