3 testRunner.waitUntilDone();
5 <p>The following two green rectangles should be identical:</p>
8 <td style="height:100px">
9 <div style="height:100%; background-color:green; border:3px solid black">This text should have a green background.</div>
15 <td style="height:100px" id="parent"></td>
18 <script type="text/javascript">
19 window.setTimeout(function() {
20 var child = document.createElement("div");
21 child.style.height = '100%';
22 child.style.backgroundColor = 'green';
23 child.style.border="3px solid black";
24 child.innerHTML = "This text should have a green background.";
25 document.getElementById("parent").appendChild(child);
27 if (window.testRunner)
28 testRunner.notifyDone();