table-anonymous-objects-056.xht (1511B)
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 407115-1.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 8 <style type="text/css"> 9 .outer { border: 1px solid black; } 10 .cell { display: table-cell; border: 1px solid green; } 11 .marg { margin: 1em 0; } 12 </style> 13 </head> 14 <body onload="var c1 = document.getElementById('c1'); c1.parentNode.removeChild(c1);"> 15 <p>There should be no red below, except for antialiasing issues.</p> 16 <div style="position: relative; font-size: 2em;"> 17 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;"> 18 19 20 <div class="outer"> 21 <div class="marg"><span id="c1" class="cell"><b>Hello Kitty</b></span></div> 22 <div class="marg"><span class="cell"><b>Hello Kitty</b></span></div> 23 <div class="marg"><span class="cell"><b>Hello Kitty</b></span></div> 24 <div class="marg"><span class="cell"><b>Hello Kitty</b></span></div> 25 </div> 26 27 </div> 28 <div style="position: relative; z-index: 1; color: red; padding: 1px;"> 29 30 31 <div class="outer"> 32 <div class="marg"></div> 33 <div class="marg"><span class="cell"><b>Hello Kitty</b></span></div> 34 <div class="marg"><span class="cell"><b>Hello Kitty</b></span></div> 35 <div class="marg"><span class="cell"><b>Hello Kitty</b></span></div> 36 </div> 37 38 </div> 39 </div> 40 </body> 41 </html>