empty-cell-visibility-hidden-001.xht (1118B)
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: Cell with hidden visibility content as an empty cell</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#empty-cells" /> 7 <meta name="assert" content="A cell with 'visibility: hidden' is considered an empty cell." /> 8 <style type="text/css"> 9 table 10 { 11 background: green; 12 empty-cells: hide; 13 } 14 td 15 { 16 background: red; 17 color: green; 18 height: 100px; 19 visibility: hidden; 20 width: 100px; 21 } 22 </style> 23 </head> 24 <body> 25 <p>Test passes if there is a box below and there is no red visible on the page.</p> 26 <table> 27 <tr> 28 <td>X</td> 29 </tr> 30 </table> 31 </body> 32 </html>