table-anonymous-objects-001.xht (1324B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 5 <title>CSS Test: Auto-imported from Gecko test 121142-1a.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-row-group"> 17 <span style="display: table-row"> 18 <span style="display: table-cell"> 19 Cell 1 20 </span> 21 <script type="text/javascript">document.body.offsetWidth</script> 22 <span style="display: table-cell"> 23 Cell 2 24 </span> 25 </span> 26 </span> 27 </span> 28 </div> 29 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;"> 30 31 <table cellspacing="0" cellpadding="0" style="border: none; padding: 0; margin: 0"> 32 <tr> 33 <td>Cell 1</td> 34 <td>Cell 2</td> 35 </tr> 36 </table> 37 </div> 38 </div> 39 </body> 40 </html>