2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <title>background on body should not fill the viewport when root is not html:html
</title>
6 html { background-color:transparent; background-image:none; }
7 body { background-image:url(resources/red.png); }
8 p { background-image:url(resources/lime.png); margin:
0; }
11 window
.onload = function() {
12 var oldElm
= document
.documentElement
;
13 var newElm
= document
.createElementNS("urn:foo:bogus", "html");
14 while (oldElm
.firstChild
)
15 newElm
.appendChild(oldElm
.firstChild
);
16 document
.replaceChild(newElm
, oldElm
);
17 document
.getElementsByTagName("p")[0].firstChild
.data
= "This line should be green and there should be no red.";
22 <p>FAIL (script didn't run)
</p>