missing-cell-rendering-001.xht (1413B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Rendering of missing table cells</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layers" /> 7 <meta name="assert" content="Missing table cells are rendered as if their grid position were occupied by an anonymous table-cell box." /> 8 <style type="text/css"> 9 #table 10 { 11 background: orange; 12 color: orange; 13 display: table; 14 } 15 .tr 16 { 17 display: table-row; 18 } 19 .td 20 { 21 background: black; 22 border: 1px solid black; 23 color: black; 24 display: table-cell; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if there is a two-by-two table below and the top-left and bottom-right corners are orange.</p> 30 <div id="table"> 31 <div class="tr"> 32 XXXXX 33 <div class="td">XXXXX</div> 34 </div> 35 <div class="tr"> 36 <div class="td">XXXXX</div> 37 </div> 38 </div> 39 </body> 40 </html>