| testRunner.waitUntilDone();
|
| <p>The following two green rectangles should be identical:</p>
|
| <td style="height:100px">
|
| <div style="height:100%; background-color:green; border:3px solid black">This text should have a green background.</div>
|
| <td style="height:100px" id="parent"></td>
|
| <script type="text/javascript">
|
| window.setTimeout(function() {
|
| var child = document.createElement("div");
|
| child.style.height = '100%';
|
| child.style.backgroundColor = 'green';
|
| child.style.border="3px solid black";
|
| child.innerHTML = "This text should have a green background.";
|
| document.getElementById("parent").appendChild(child);
|