column-border-002

Column-group border property

WeasyPrint

This browser

Assertion
A border can be set on a table column group.

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: Column-group border property</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#columns">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="A border can be set on a table column group.">
 9         <style type="text/css">
10             .table
11             {
12                 background: black;
13                 border-collapse: collapse;
14                 display: table;
15             }
16             .cg1
17             {
18                 border: 5px dotted green;
19                 display: table-column-group;
20             }
21             .cg2
22             {
23                 display: table-column-group;
24             }
25             .col
26             {
27                 display: table-column;
28             }
29             .tr
30             {
31                 display: table-row;
32             }
33             .td
34             {
35                 display: table-cell;
36                 height: 0.25in;
37                 width: 0.25in;
38             }
39         </style>
40     </head>
41     <body>
42         <p>Test passes if the left half of the black box below has green dotted border.</p>
43         <div class="table">
44             <div class="cg1">
45                 <div class="col"></div>
46                 <div class="col"></div>
47             </div>
48             <div class="cg2">
49                 <div class="col"></div>
50                 <div class="col"></div>
51             </div>
52             <div class="tr">
53                 <div class="td"></div>
54                 <div class="td"></div>
55                 <div class="td"></div>
56                 <div class="td"></div>
57             </div>
58             <div class="tr">
59                 <div class="td"></div>
60                 <div class="td"></div>
61                 <div class="td"></div>
62                 <div class="td"></div>
63             </div>
64             <div class="tr">
65                 <div class="td"></div>
66                 <div class="td"></div>
67                 <div class="td"></div>
68                 <div class="td"></div>
69             </div>
70             <div class="tr">
71                 <div class="td"></div>
72                 <div class="td"></div>
73                 <div class="td"></div>
74                 <div class="td"></div>
75             </div>
76         </div>
77     </body>
78 </html>