row-visibility-004

A spanning cell that originates from a 'visibility: collapse' row

WeasyPrint

This browser

Assertion
A row-spanning cell which originates in a collapsed row is completely collapsed along with its row.

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: A spanning cell that originates from 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="">
 8         <meta name="assert" content="A row-spanning cell which originates in a collapsed row is completely collapsed along with its row.">
 9         <style type="text/css">
10             #row
11             {
12                 visibility: collapse;
13             }
14             td
15             {
16                 background: blue;
17                 height: 2em;
18                 width: 2em;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if there is a single blue box below with a letter "X" aligned to its left side.</p>
24         <table>
25             <tr id="row">
26                 <td rowspan="2">X</td>
27                 <td>X</td>
28             </tr>
29             <tr>
30                 <td>X</td>
31             </tr>
32         </table>
33     </body>
34 </html>