Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / scrollbar-restored.html
blob5be2e39c1e707dfb6c14d2058efdb5ce0e802126
1 <body>
2 <p>
3 Test for <i><a href="rdar://problem/7215132">rdar://problem/7215132</a>,
4 <a href="https://bugs.webkit.org/show_bug.cgi?id=29167">bug 29167</a>,
5 REGRESSION (r48064): mint.com loses scrollbars after coming out of edit mode</i>,
6 and <i><a href="rdar://problem/7314421">rdar://problem/7314421</a>,
7 <a href="https://bugs.webkit.org/show_bug.cgi?id=30517">bug 30517</a>,
8 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store</i>.
9 </p>
10 <p>
11 This tests that after setting 'overflow' on the document element to
12 'hidden' and back to 'visible', scrollbars appear as necessary.
13 </p>
14 <p id="result">FAIL: Test did not run to completion</p>
15 <script>
16 if (window.testRunner)
17 testRunner.dumpAsText();
19 document.documentElement.style.overflow = "hidden";
20 document.body.offsetTop;
21 document.documentElement.style.removeProperty("overflow");
22 document.body.style.height = "200%";
23 var result = (innerWidth === document.documentElement.offsetWidth)
24 ? "FAIL: Scrollbar did not appear after resetting 'overflow'"
25 : "PASS"
27 document.getElementById("result").innerText = result;
28 </script>
29 </body>