table-anonymous-objects-003

Auto-imported from Gecko test 121142-1b.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 
 5   <title>CSS Test: Auto-imported from Gecko test 121142-1b.html</title>
 6   <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu">
 7   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">
 8   <meta name="flags" content="dom">
 9 </head>
10 <body>
11 <p>There should be no red below, except for antialiasing issues.</p>
12 <div style="position: relative; font-size: 2em;">
13 <div style="position: relative; z-index: 1; color: red; padding: 1px;">
14 
15     <span style="display:table">
16       <span style="display: table-cell">
17         Cell 1
18       </span>
19       <script type="text/javascript">document.body.offsetWidth</script>
20       <span style="display: table-cell">
21         Cell 2
22       </span>
23     </span>
24   </div>
25 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;">
26 
27     <table cellspacing="0" cellpadding="0" style="border: none; padding: 0; margin: 0">
28       <tr>
29         <td>Cell 1</td>
30         <td>Cell 2</td>
31       </tr>
32     </table>
33   </div>
34 </div>
35 </body>
36 </html>