Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / overflow-body-stop-propagation.html
blob4c79ff23eadb8404645e6734cfc02c63f94a9c32
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 html {
6 overflow: hidden;
9 body {
10 overflow: hidden;
11 position: relative;
12 height: 0px;
13 margin: 0px;
16 div {
17 position: absolute;
19 </style>
20 </head>
21 <body>
22 <div>This checks that we don't wrongly propagate the body's overflow clip when we shouldn't.<br>This text should be visible in the output.</div>
23 <script>
24 document.body.offsetTop;
26 // This removes the body's overflow clip propagation, which should make the text above appear.
27 document.documentElement.style.overflow = "visible";
28 document.body.style.overflowY = "visible";
29 </script>
30 </body>
31 </html>