Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / body-propagation / overflow / 007-xhtml.xhtml
blob968443bddf201203dd8d4f6f0812f6470526ce48
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>overflow on body should not propagate to the viewport when not child of root</title>
5 <style>
6 html { overflow:hidden; }
7 body { overflow:scroll; width:10em; height:10em; border:thin solid; display:block; color:navy; }
8 .filler { color:gray; }
9 </style>
10 <script>
11 window.onload = function() {
12 var newElm = document.createElement("bogus"); // namespace doesn't matter in this case
13 newElm.appendChild(document.getElementsByTagName("body")[0]);
14 document.documentElement.appendChild(newElm);
15 document.getElementsByTagName("p")[0].firstChild.data = "There should be scrollbars for this box -- not for the viewport.";
17 </script>
18 </head>
19 <body>
20 <p>FAIL (script didn't run)</p>
21 <p class="filler">This is filler text.</p>
22 <p class="filler">This is filler text.</p>
23 <p class="filler">This is filler text.</p>
24 <p class="filler">This is filler text.</p>
25 </body>
26 </html>