column-visibility-004.xht (1446B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 5 <head> 6 7 <title>CSS Test: Spanning cell that intersects a 'visibility: collapse' column</title> 8 9 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 10 <link rel="help" title="17.5.5 Dynamic row and column effects" href="http://www.w3.org/TR/CSS21/tables.html#dynamic-effects" /> 11 <link rel="match" href="column-visibility-004-ref.xht" /> 12 13 <meta name="flags" content="ahem" /> 14 <meta name="assert" content="Contents of a spanned cell which intersect with a collapsed column are clipped." /> 15 16 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 17 <style type="text/css"><![CDATA[ 18 table {font: 100px/1 Ahem;} 19 20 col#collapsed-column {visibility: collapse;} 21 22 td 23 { 24 color: green; 25 padding: 0; 26 width: 1em; 27 } 28 29 .column-intersection {color: red;} 30 ]]></style> 31 32 </head> 33 34 <body> 35 36 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 37 38 <table> 39 <col></col> 40 <col id="collapsed-column"></col> 41 <col></col> 42 <col></col> 43 44 <tr> 45 <td></td> 46 <td colspan="2"><span class="column-intersection">F</span>P</td> 47 <td></td> 48 </tr> 49 50 <tr> 51 <td></td> 52 <td class="column-intersection">F</td> 53 <td></td> 54 <td></td> 55 </tr> 56 </table> 57 58 </body> 59 </html>