column-visibility-003.xht (1723B)
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: Spanning cell that intersects a 'visibility: collapse' column</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#dynamic-effects" /> 7 <meta name="flags" content="ahem" /> 8 <meta name="assert" content="Contents of a spanned cell which intersect with a collapsed column are clipped." /> 9 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 10 <style type="text/css"> 11 table 12 { 13 font: 128px/1 Ahem; 14 } 15 col#collapsed-column 16 { 17 visibility: collapse; 18 } 19 td 20 { 21 color: green; 22 padding: 0; 23 width: 1em; 24 } 25 .column-intersection 26 { 27 color: red; 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if there is a green square below and no red visible on the page.</p> 33 <table> 34 <col /> 35 <col /> 36 <col id="collapsed-column" /> 37 <col /> 38 <tr> 39 <td></td> 40 <td colspan="2">P<span class="column-intersection">F</span></td> 41 <td></td> 42 </tr> 43 <tr> 44 <td></td> 45 <td></td> 46 <td class="column-intersection">F</td> 47 <td></td> 48 </tr> 49 </table> 50 </body> 51 </html>