2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <title>background on body should not cover the viewport when not child of root
</title>
6 html { background-color:transparent; background-image:none; }
7 body { background-image:url(resources/red.png); padding:
0; }
8 p { background-image:url(resources/lime.png); }
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
= "This line should be green and there should be no red.";
20 <p>FAIL (script didn't run)
</p>