empty-cells-exceptions-003.xht (1477B)
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: Cells with collapsed white space content are considered empty</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="Cells that contain in-flow content of white space which has been collapsed away by the 'white-space' property are considered to be empty cells." /> 8 <style type="text/css"> 9 table 10 { 11 background: green; 12 border-spacing: 0; 13 empty-cells: hide; 14 white-space: normal; 15 } 16 td 17 { 18 background: green; 19 color: green; 20 padding: 0; 21 } 22 .red 23 { 24 background: red; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if there is no red visible on the page.</p> 30 <table> 31 <tr> 32 <td class="red"> 33 </td> 34 <td>FillerTextFillerText</td> 35 </tr> 36 <tr> 37 <td>FillerTextFillerText</td> 38 <td class="red"> 39 </td> 40 </tr> 41 </table> 42 </body> 43 </html>