Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / scroll-position-for-new-loads.html
blobb1fdba4d8e91ab7b6446fc322bb840568252b9f1
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Check that document.scrollingElement.scrollTop is equal to '0' for newly loaded pages</title>
5 <link rel="author" title="Mikhail Pozdnyakov" href="mailto:mikhail.pozdnyakov@intel.com" />
6 <style type="text/css">
7 div { min-height: 3000px; }
8 </style>
9 <script type="text/javascript">
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
15 function update() {
16 var result = document.getElementById("result");
17 window.location = "resources/check-scroll-position-onload.html";
20 function load() {
21 window.scrollBy(0, 1000);
22 setTimeout(update, 0);
24 </script>
25 </head>
26 <body onload="load()">
27 <div id="result">
28 <p></p>
29 </div>
30 <body>
31 </html>