table-anonymous-objects-029.xht (992B)
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 325543-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 </head> 9 <body onload="document.getElementById('t').style.display = 'block'"> 10 <p>There should be no red below, except for antialiasing issues.</p> 11 <div style="position: relative; font-size: 2em;"> 12 <div style="position: relative; z-index: 1; color: red; padding: 1px;"> 13 14 <!-- Lack of space between the two spans is key --> 15 <span style="display: table-cell">First line</span><span style="display: none" id="t">Second line</span> 16 </div> 17 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;"> 18 19 <div>First line</div> 20 <div>Second line</div> 21 </div> 22 </div> 23 </body> 24 </html>