table-anonymous-objects-155

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