table-anonymous-objects-019.xht (1317B)
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 208305-4.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 <link rel="match" href="reference/no_red_antialiasing_a_bc_d-ref.xht"/> 8 <meta name="flags" content='dom'/> 9 10 <style id="s" type="text/css"> 11 span { display: table-cell ! important } 12 </style> 13 <script type="text/javascript"><![CDATA[ 14 function doTest() { 15 var s = document.getElementById("s"); 16 s.disabled = true; 17 document.body.offsetWidth; 18 s.disabled = false; 19 document.documentElement.className = ""; 20 } 21 ]]></script> 22 </head> 23 <body onload="doTest()"> 24 <p>There should be no red below, except for antialiasing issues.</p> 25 <div style="position: relative; font-size: 2em;"> 26 <div style="position: relative; z-index: 1; color: red; padding: 1px;"> 27 28 <span style="display: block">a b</span> 29 <span style="display: block">c d</span> 30 </div> 31 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;"> 32 33 a bc d 34 </div> 35 </div> 36 </body> 37 </html>