collapsing-table-borders-009

All of a column group border can be specified

WeasyPrint

This browser

Assertion
The borders of all four sides of a specific table column group can be specified under the collapsing border model.

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: All of a column group border can be specified</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#collapsing-borders">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The borders of all four sides of a specific table column group can be specified under the collapsing border model.">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13             }
14             td
15             {
16                 border: 1px solid black;
17                 height: 50px;
18                 width: 50px;
19             }
20             #colgroup
21             {
22                 border: 10px solid blue;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if there is a blue border around the middle column in the three-by-three table below.</p>
28         <table>
29             <colgroup>
30                 <col>
31             </colgroup>
32             <colgroup id="colgroup">
33                 <col>
34             </colgroup>
35             <colgroup>
36                 <col>
37             </colgroup>
38             <tr>
39                 <td></td>
40                 <td></td>
41                 <td></td>
42             </tr>
43             <tr>
44                 <td></td>
45                 <td></td>
46                 <td></td>
47             </tr>
48             <tr>
49                 <td></td>
50                 <td></td>
51                 <td></td>
52             </tr>
53         </table>
54     </body>
55 </html>