| OLD | NEW | 
|---|
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> | 
| 2 <html> | 2 <html> | 
| 3 <head> | 3 <head> | 
| 4     <title>Check that document.body.scrollTop is equal to '0' for newly loaded p
    ages</title> | 4     <title>Check that document.scrollingElement.scrollTop is equal to '0' for ne
    wly loaded pages</title> | 
| 5     <link rel="author" title="Mikhail Pozdnyakov" href="mailto:mikhail.pozdnyako
    v@intel.com" /> | 5     <link rel="author" title="Mikhail Pozdnyakov" href="mailto:mikhail.pozdnyako
    v@intel.com" /> | 
| 6     <style type="text/css"> | 6     <style type="text/css"> | 
| 7         div { min-height: 3000px; } | 7         div { min-height: 3000px; } | 
| 8     </style> | 8     </style> | 
| 9     <script type="text/javascript"> | 9     <script type="text/javascript"> | 
| 10         if (window.testRunner) { | 10         if (window.testRunner) { | 
| 11             testRunner.dumpAsText(); | 11             testRunner.dumpAsText(); | 
| 12             testRunner.waitUntilDone(); | 12             testRunner.waitUntilDone(); | 
| 13         } | 13         } | 
| 14 | 14 | 
| 15         function update() { | 15         function update() { | 
| 16             var result = document.getElementById("result"); | 16             var result = document.getElementById("result"); | 
| 17             window.location = "resources/check-scroll-position-onload.html"; | 17             window.location = "resources/check-scroll-position-onload.html"; | 
| 18         } | 18         } | 
| 19 | 19 | 
| 20         function load() { | 20         function load() { | 
| 21             window.scrollBy(0, 1000); | 21             window.scrollBy(0, 1000); | 
| 22             setTimeout(update, 0); | 22             setTimeout(update, 0); | 
| 23         } | 23         } | 
| 24     </script> | 24     </script> | 
| 25 </head> | 25 </head> | 
| 26 <body onload="load()"> | 26 <body onload="load()"> | 
| 27     <div id="result"> | 27     <div id="result"> | 
| 28         <p></p> | 28         <p></p> | 
| 29     </div> | 29     </div> | 
| 30 <body> | 30 <body> | 
| 31 </html> | 31 </html> | 
| OLD | NEW | 
|---|