table-anonymous-objects-048.xht (1033B)
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 <title>CSS Test: Auto-imported from Gecko test 372641-1b.xhtml</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 nonHTML'/> 8 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: absolute; z-index: 2; top: 0; color: green; padding: 1px;"> 14 15 16 <table border="1"><tbody id="tbody">XXX<tr><td>TD</td></tr></tbody></table> 17 18 <script type="text/javascript"><![CDATA[ 19 document.body.offsetWidth; 20 document.getElementById("tbody").firstChild.data = ''; 21 ]]></script> 22 23 </div> 24 <div style="position: relative; z-index: 1; color: red; padding: 1px;"> 25 26 27 <table border="1"><tbody><tr><td>TD</td></tr></tbody></table> 28 29 </div> 30 </div> 31 </body> 32 </html>