table-anonymous-objects-042

Auto-imported from Gecko test 368932-1.html

WeasyPrint

This browser

Flags
dom

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3 <head>
 4   <title>CSS Test: Auto-imported from Gecko test 368932-1.html</title>
 5   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 6   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">
 7   <meta name="flags" content="dom">
 8 
 9   <script type="text/javascript">
10     function doTest() {
11       for (var i = 0; i < 10; ++i) {
12         // clear target element's content
13         document.getElementById("target-table").innerHTML = "";
14         // clone and append new row
15         cloned_row = document.getElementById("row-template").cloneNode(true);
16         document.getElementById("target-table").appendChild(cloned_row);
17         document.body.offsetWidth;
18       }
19     }
20     </script>
21 </head>
22 <body onload="doTest()">
23 <p>There should be no red below, except for antialiasing issues.</p>
24 <div style="position: relative; font-size: 2em;">
25 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
26 
27     <table><tr id="row-template"><td>cloning material</td></tr></table>
28     <table id="target-table"><tr><td>target table</td></tr></table>
29 </div>
30 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
31 
32     <table><tr><td>cloning material</td></tr></table>
33     <table><tr><td>cloning material</td></tr></table>
34 </div>
35 </div>
36 </body>
37 </html>