empty-cells-exceptions-001.xht (1578B)
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 containing floating content are not 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 floating content, including empty elements, are not considered to be empty cells. The table under test actually contains two tests. The first cell tests floating content, and the second cell tests a floating empty element." /> 8 <style type="text/css"> 9 table 10 { 11 background: red; 12 border-spacing: 0; 13 empty-cells: hide; 14 } 15 td 16 { 17 background: green; 18 color: green; 19 } 20 .float 21 { 22 float: right; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if there is no red visible on the page.</p> 28 <table> 29 <tr> 30 <td> 31 <div class="float"> </div> 32 </td> 33 <td>FillerTextFillerText</td> 34 </tr> 35 <tr> 36 <td>FillerTextFillerText</td> 37 <td> 38 <div class="float"></div> 39 </td> 40 </tr> 41 </table> 42 </body> 43 </html>