blob: 4477ab740e1f1fb290f99cd43ead927437b3f448 [file] [log] [blame]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>background on body should fill the viewport even when it has bogus siblings</title>
<style>
html { background-color:transparent; background-image:none; }
body { background-image:url(resources/yellow.png); color:navy; }
</style>
<script>
window.onload = function() {
var newElm = document.createElementNS("urn:foo:bogus", "body");
document.documentElement.insertBefore(newElm, document.getElementsByTagName("body")[0]);
document.getElementsByTagName("p")[0].firstChild.data = "The entire viewport should be yellow.";
}
</script>
</head>
<body>
<p>FAIL (script didn't run)</p>
</body>
</html>