row-visibility-003.xht (1642B)
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' row</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 row 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 tr#collapsed-row 16 { 17 visibility: collapse; 18 } 19 td 20 { 21 color: green; 22 height: 1em; 23 padding: 0; 24 width: 1em; 25 } 26 .row-intersection 27 { 28 color: red; 29 } 30 </style> 31 </head> 32 <body> 33 <p>Test passes if there is a green square below and there is no red visible on the page.</p> 34 <table> 35 <col /> 36 <col /> 37 <col /> 38 <tr> 39 <td></td> 40 <td rowspan="2">P <span class="row-intersection">F</span></td> 41 <td></td> 42 </tr> 43 <tr id="collapsed-row"> 44 <td></td> 45 <td></td> 46 </tr> 47 </table> 48 </body> 49 </html>