column-visibility-003

Spanning cell that intersects a 'visibility: collapse' column

WeasyPrint

This browser

Flags
ahem
Assertion
Contents of a spanned cell which intersect with a collapsed column are clipped.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 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         <style type="text/css">
10             table
11             {
12                 font: 128px/1 Ahem;
13             }
14             col#collapsed-column
15             {
16                 visibility: collapse;
17             }
18             td
19             {
20                 color: green;
21                 padding: 0;
22                 width: 1em;
23             }
24             .column-intersection
25             {
26                 color: red;
27             }
28         </style>
29     </head>
30     <body>
31         <p>Test passes if there is a green square below and no red visible on the page.</p>
32         <table>
33             <col>
34             <col>
35             <col id="collapsed-column">
36             <col>
37             <tr>
38                 <td></td>
39                 <td colspan="2">P<span class="column-intersection">F</span></td>
40                 <td></td>
41             </tr>
42             <tr>
43                 <td></td>
44                 <td></td>
45                 <td class="column-intersection">F</td>
46                 <td></td>
47             </tr>
48         </table>
49     </body>
50 </html>