table-anonymous-objects-136.xht (2417B)
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 dynamic-switch-block-to-cell-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 <link rel="match" href="reference/no_red_3x3_monospace_table-ref.xht"/> 8 <meta name="flags" content='dom'/> 9 10 <script type="text/javascript"><![CDATA[ 11 function doTest() { 12 document.getElementById("t").style.display = "table-cell"; 13 document.documentElement.className = ""; 14 } 15 ]]></script> 16 </head> 17 <body style="font-family: monospace" onload="doTest()"> 18 <p>There should be no red below, except for antialiasing issues.</p> 19 <div style="position: relative; font-size: 2em;"> 20 <div style="position: absolute; z-index: 2; top: 0; color: green; padding: 1px;"> 21 22 <span style="display:table"> 23 <span style="display: table-row-group"> 24 <span style="display: table-row"> 25 <span style="display: table-cell">Row 1, Col 1</span> 26 <span style="display: table-cell">Row 1, Col 2</span> 27 <span style="display: table-cell">Row 1, Col 3</span> 28 </span> 29 <span style="display: table-row"> 30 <span style="display: table-cell">Row 22, Col 1</span> 31 <span style="display: table-cell">Row 22, Col 2</span> 32 <span style="display: table-cell">Row 22, Col 3</span> 33 </span> 34 <span style="display: table-row"> 35 <span style="display: block" id="t">Row 333, Col 1</span> 36 <span style="display: block">Row 333, Col 2</span> 37 <span style="display: table-cell">Row 333, Col 3</span> 38 </span> 39 </span> 40 </span> 41 </div> 42 <div style="position: relative; z-index: 1; color: red; padding: 1px;"> 43 44 <table cellpadding="0" cellspacing="0" style="margin: 0; padding: 0; border: none"> 45 <tr> 46 <td>Row 1, Col 1</td> 47 <td>Row 1, Col 2</td> 48 <td>Row 1, Col 3</td> 49 </tr> 50 <tr> 51 <td>Row 22, Col 1</td> 52 <td>Row 22, Col 2</td> 53 <td>Row 22, Col 3</td> 54 </tr> 55 <tr> 56 <td>Row 333, Col 1</td> 57 <td>Row 333, Col 2</td> 58 <td>Row 333, Col 3</td> 59 </tr> 60 </table> 61 </div> 62 </div> 63 </body> 64 </html>