Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / fouc / scroll-left-while-loading.html
blob321396b91c87aea2fc9868f3a916787825e834d7
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
7 setTimeout(function(){
8 document.scrollingElement.scrollLeft;
9 // Check that ignoreLayoutWithPendingStylesheets will return true if we did a
10 // forced repaint after the access to scrollLeft. We should not since the delayed
11 // stylesheet below is pending.
12 if (!window.internals || internals.ignoreLayoutWithPendingStylesheets(document))
13 document.write("FAIL");
14 else
15 document.write("PASS");
16 document.close();
17 if (window.testRunner)
18 testRunner.notifyDone();
19 }, 0);
20 </script>
21 <link rel="stylesheet" href="/resources/slow-script.pl?delay=100">