Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / body-propagation / overflow / 006.html
blob03a42d498a721ff1c39e195211ea3992d0e3f0d6
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>overflow on subsequent bodys should not propagate to the viewport</title>
5 <style>
6 html { overflow:visible; }
7 #test { display:block; overflow:scroll; width:10em; height:10em; border:thin solid; }
8 body { color:navy; }
9 </style>
10 <script>
11 window.onload = function() {
12 var newElm = document.getElementsByTagName("body")[0].cloneNode(false);
13 newElm.id = "test";
14 document.documentElement.appendChild(newElm);
15 document.getElementsByTagName("p")[0].firstChild.data = "There should be scrollbars for the box below -- not for the viewport.";
17 </script>
18 </head>
19 <body>
20 <p>FAIL (script didn't run)</p>
21 </body>
22 </html>