table-footer-group-002

Table footer group and other row groups

WeasyPrint

This browser

Assertion
A table-footer-group element is placed after all other row groups in a table.

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: Table footer group and other 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#table-display">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="A table-footer-group element is placed after all other row groups in a table.">
 9         <style type="text/css">
10             .table
11             {
12                 display: table;
13             }
14             #thead
15             {
16                 background: orange;
17                 display: table-header-group;
18             }
19             #tbody
20             {
21                 background: orange;
22                 display: table-row-group;
23             }
24             #tfoot
25             {
26                 background: blue;
27                 display: table-footer-group;
28             }
29             .tr
30             {
31                 display: table-row;
32             }
33             .td
34             {
35                 display: table-cell;
36                 height: 4em;
37                 width: 4em;
38             }
39         </style>
40     </head>
41     <body>
42         <p>Test passes if the blue square below is stacked below the orange box.</p>
43         <div class="table">
44             <div id="tfoot">
45                 <div class="tr">
46                      <div class="td"></div>
47                 </div>
48             </div>
49             <div id="tbody">
50                 <div class="tr">
51                      <div class="td"></div>
52                 </div>
53             </div>
54             <div id="thead">
55                 <div class="tr">
56                      <div class="td"></div>
57                 </div>
58             </div>
59         </div>
60     </body>
61 </html>