table-anonymous-objects-038.xht (1328B)
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 339388-1b.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"><![CDATA[ 10 function doTest() { 11 var n = document.getElementById("n"); 12 for (var i = 0; i < 5; ++i) { 13 n.style.position = "absolute"; 14 document.body.offsetWidth; 15 n.style.position = ""; 16 document.body.offsetWidth; 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 <table border="5"> 28 <tr> 29 <td id="n">TD</td> 30 </tr> 31 </table> 32 </div> 33 <div style="position: relative; z-index: 1; color: red; padding: 1px;"> 34 35 <table border="5"> 36 <tr> 37 <td id="n">TD</td> 38 </tr> 39 </table> 40 </div> 41 </div> 42 </body> 43 </html>