table-anonymous-objects-143

Auto-imported from Gecko test dynamic-switch-block-to-cell-5.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 dynamic-switch-block-to-cell-5.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-cell";
12         document.documentElement.className = "";
13       }
14     </script>
15   </head>
16 <body style="font-family: monospace" onload="doTest()">
17 <p>There should be no red below, except for antialiasing issues.</p>
18 <div style="position: relative; font-size: 2em;">
19 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
20 
21     <span style="display:table">
22       <span style="display: table-row-group"> 
23         <span style="display: table-row">
24           <span style="display: table-cell">Row 1, Col 1</span>
25           <span style="display: table-cell">Row 1, Col 2</span>
26           <span style="display: table-cell">Row 1, Col 3</span>
27         </span>
28         <span style="display: table-row">
29           <span style="display: table-cell">Row 22, Col 1</span>
30           <span style="display: table-cell">Row 22, Col 2</span>
31           <span style="display: table-cell">Row 22, Col 3</span>
32         </span>
33         <span style="display: table-row">
34           <span style="display: table-cell">Row 333, Col 1</span>
35           <span style="display: block">Row 333, Col 2</span>
36           <span style="display: block" id="t">Row 333, Col 3</span>
37         </span>
38       </span>
39     </span>
40   </div>
41 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
42 
43     <table cellpadding="0" cellspacing="0" style="margin: 0; padding: 0; border: none">
44       <tr>
45         <td>Row 1, Col 1</td>
46         <td>Row 1, Col 2</td>
47         <td>Row 1, Col 3</td>
48       </tr>
49       <tr>
50         <td>Row 22, Col 1</td>
51         <td>Row 22, Col 2</td>
52         <td>Row 22, Col 3</td>
53       </tr>
54       <tr>
55         <td>Row 333, Col 1</td>
56         <td>Row 333, Col 2</td>
57         <td>Row 333, Col 3</td>
58       </tr>
59     </table>
60   </div>
61 </div>
62 </body>
63 </html>