empty-cells-001.xht (1458B)
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: Empty-cells set to 'show'</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#propdef-empty-cells" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#empty-cells" /> 8 <meta name="assert" content="An 'empty-cells' value of 'show' allows cells without content to have visible backgrounds and borders." /> 9 <style type="text/css"> 10 td 11 { 12 color: white; 13 } 14 .empty 15 { 16 background-color: black; 17 border: 10px solid black; 18 empty-cells: show; 19 } 20 </style> 21 </head> 22 <body> 23 <p>Test passes if three boxes appear below.</p> 24 <table> 25 <tr> 26 <td class="empty"></td> 27 <td>XXXXX</td> 28 <td>XXXXX</td> 29 </tr> 30 <tr> 31 <td>XXXXX</td> 32 <td class="empty"></td> 33 <td>XXXXX</td> 34 </tr> 35 <tr> 36 <td>XXXXX</td> 37 <td>XXXXX</td> 38 <td class="empty"></td> 39 </tr> 40 </table> 41 </body> 42 </html>