table-borders-003

Borders on Table Elements (column-groups)

WeasyPrint

This browser

Assertion
Borders can be applied to table column groups.

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: Borders on Table Elements (column-groups)</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#tables-intro">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Borders can be applied to table column groups.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13             }
14             colgroup
15             {
16                 border: 3px solid black;
17             }
18             td
19             {
20                 height: 2em;
21                 width: 2em;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if the box is divided into a left half and a right half.</p>
27         <table>
28             <colgroup>
29                 <col>
30                 <col>
31             </colgroup>
32             <colgroup>
33                 <col>
34                 <col>
35             </colgroup>
36             <tr>
37                 <td></td>
38                 <td></td>
39                 <td></td>
40                 <td></td>
41             </tr>
42             <tr>
43                 <td></td>
44                 <td></td>
45                 <td></td>
46                 <td></td>
47             </tr>
48             <tr>
49                 <td></td>
50                 <td></td>
51                 <td></td>
52                 <td></td>
53             </tr>
54             <tr>
55                 <td></td>
56                 <td></td>
57                 <td></td>
58                 <td></td>
59             </tr>
60         </table>
61     </body>
62  </html>