table-anonymous-objects-043

Auto-imported from Gecko test 371054-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 371054-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         document.getElementById("t").style.display = "table-row";
12       }
13     </script>
14   </head>
15 <body onload="doTest()">
16 <p>There should be no red below, except for antialiasing issues.</p>
17 <div style="position: relative; font-size: 2em;">
18 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
19 
20     <table style="border-collapse: collapse">
21       <tr style="display: block; border: 5px solid">
22         <td>LongLongLong</td>
23       </tr>
24       <tr style="display: none; border: 5px solid" id="t">
25         <td>Short</td>
26       </tr>
27     </table>
28   </div>
29 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
30 
31     <table style="border-collapse: collapse">
32       <tr style="display: block; border: 5px solid">
33         <td>LongLongLong</td>
34       </tr>
35       <tr style="border: 5px solid" id="t">
36         <td>Short</td>
37       </tr>
38     </table>
39   </div>
40 </div>
41 </body>
42 </html>