Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / body-propagation / background-image / 005-xhtml.xhtml
blob4477ab740e1f1fb290f99cd43ead927437b3f448
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>background on body should fill the viewport even when it has bogus siblings</title>
5 <style>
6 html { background-color:transparent; background-image:none; }
7 body { background-image:url(resources/yellow.png); color:navy; }
8 </style>
9 <script>
10 window.onload = function() {
11 var newElm = document.createElementNS("urn:foo:bogus", "body");
12 document.documentElement.insertBefore(newElm, document.getElementsByTagName("body")[0]);
13 document.getElementsByTagName("p")[0].firstChild.data = "The entire viewport should be yellow.";
15 </script>
16 </head>
17 <body>
18 <p>FAIL (script didn't run)</p>
19 </body>
20 </html>