table-layer-transparency-010.xht (1834B)
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: Hidden empty cells are transparent down to table background</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="If 'empty-cells' is set to 'hide', empty cells are transparent all the way down to the table background." /> 8 <style type="text/css"> 9 table 10 { 11 background: orange; 12 border-collapse: separate; 13 border-spacing: 0; 14 } 15 colgroup, col, tbody, tr 16 { 17 background: blue; 18 } 19 td 20 { 21 height: 2em; 22 width: 2em; 23 } 24 #test 25 { 26 background: red; 27 empty-cells: hide; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if there is an orange square in the middle of the blue square below.</p> 33 <table> 34 <colgroup> 35 <col /> 36 <col /> 37 <col /> 38 </colgroup> 39 <tbody> 40 <tr> 41 <td></td> 42 <td></td> 43 <td></td> 44 </tr> 45 <tr> 46 <td></td> 47 <td id="test"></td> 48 <td></td> 49 </tr> 50 <tr> 51 <td></td> 52 <td></td> 53 <td></td> 54 </tr> 55 </tbody> 56 </table> 57 </body> 58 </html>