Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / body-propagation / background-image / 006-xhtml.xhtml
blob2b300001411f39ee86683155c44806c8965e2704
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <title>background on subsequent bodys should not cover the viewport</title>
5 <style>
6 html { background-color:transparent; background-image:none; }
7 #test { background-image:url(resources/red.png); padding:0; }
8 p { background-image:url(resources/lime.png); }
9 </style>
10 <script>
11 window.onload = function() {
12 var newElm = document.getElementsByTagName("body")[0].cloneNode(false);
13 newElm.id = "test";
14 document.documentElement.appendChild(newElm);
15 document.getElementsByTagName("p")[0].firstChild.data = "This line should be green and there should be no red.";
17 </script>
18 </head>
19 <body>
20 <p>FAIL (script didn't run)</p>
21 </body>
22 </html>