table-borders-001

Borders on Table Elements (row groups)

WeasyPrint

This browser

Assertion
Borders can be applied to row groups (through the use of tbody elements).

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 (row 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 row groups (through the use of tbody elements).">
 9         <style type="text/css">
10             table
11             {
12                 border-collapse: collapse;
13             }
14             tbody
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 top and bottom half.</p>
27         <table>
28             <tbody>
29                  <tr>
30                     <td></td>
31                     <td></td>
32                     <td></td>
33                     <td></td>
34                  </tr>
35                  <tr>
36                     <td></td>
37                     <td></td>
38                     <td></td>
39                     <td></td>
40                  </tr>
41               </tbody>
42               <tbody>
43                  <tr>
44                     <td></td>
45                     <td></td>
46                     <td></td>
47                     <td></td>
48                  </tr>
49                  <tr>
50                     <td></td>
51                     <td></td>
52                     <td></td>
53                     <td></td>
54                  </tr>
55             </tbody>
56         </table>
57     </body>
58  </html>