Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / overflow / body-switch-composited-scrolling.html
blob49b370cbb53e37da436c84f7666ad8c9663ebec3
1 <!DOCTYPE html>
2 <style>
3 html, body {
4 height: 100%;
7 html {
8 overflow-y: hidden;
11 body {
12 margin: 0;
13 overflow-y: scroll;
16 #content {
17 position: relative;
18 height: 1000px;
19 background-color: yellow;
21 </style>
22 <div id="content">
23 The test passes if the contents scrolls correctly.
24 </div>
25 <script>
26 document.body.offsetTop;
27 document.documentElement.style.overflowY = 'visible';
28 document.body.style.position = 'relative';
30 window.scrollTo(0, 100);
31 </script>