table-anonymous-objects-026

Auto-imported from Gecko test 302113-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 302113-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 t = document.getElementById("t");
12     for (var i = 0; i < 5; ++i) {
13       document.body.offsetWidth;
14       t.style.display = "none";
15       document.body.offsetWidth;
16       t.style.display = "block";
17     }
18     document.documentElement.className = "";
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   <span style="display: table">
28     <span style="display: table-row">
29       <span style="display: table-cell">
30         Cell
31       </span>
32       <span style="display: table-cell">
33         Cell
34       </span>
35       <span style="display: table-cell">
36         Cell
37       </span>
38       <span style="display: table-cell">
39         Cell
40       </span>
41       <span style="display: table-cell">
42         Cell
43       </span>
44     </span>
45     <span style="display: table-row">
46       <span style="display: block" id="t">Which column?</span>
47     </span>
48   </span>
49 </div>
50 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
51 
52   <span style="display: table">
53     <span style="display: table-row">
54       <span style="display: table-cell">
55         Cell
56       </span>
57       <span style="display: table-cell">
58         Cell
59       </span>
60       <span style="display: table-cell">
61         Cell
62       </span>
63       <span style="display: table-cell">
64         Cell
65       </span>
66       <span style="display: table-cell">
67         Cell
68       </span>
69     </span>
70     <span style="display: table-row">
71       <span style="display: block" id="t">Which column?</span>
72     </span>
73   </span>
74 </div>
75 </div>
76 </body>
77 </html>