table-footer-group-003

Table footer group and top captions

WeasyPrint

This browser

Assertion
A table-footer-group element is placed before any bottom captions.

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 top captions</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 before any bottom captions.">
 9         <style type="text/css">
10             .table
11             {
12                 display: table;
13             }
14             .caption
15             {
16                 background: orange;
17                 border: 1px solid black;
18                 caption-side: bottom;
19                 color: orange;
20                 display: table-caption;
21                 height: 4em;
22                 width: 4em;
23             }
24             #tfoot
25             {
26                 background: blue;
27                 display: table-footer-group;
28             }
29             #tbody
30             {
31                 background: orange;
32                 display: table-row-group;
33             }
34             .tr
35             {
36                 display: table-row;
37             }
38             .td
39             {
40                 border: 1px solid black;
41                 display: table-cell;
42                 height: 4em;
43                 width: 4em;
44             }
45         </style>
46     </head>
47     <body>
48         <p>Test passes if the blue square below is stacked above either one or two orange squares and has one orange square above it.</p>
49         <div class="table">
50             <div class="caption"></div>
51             <div class="caption"></div>
52             <div id="tfoot">
53                 <div class="tr">
54                      <div class="td"></div>
55                 </div>
56             </div>
57             <div id="tbody">
58                 <div class="tr">
59                      <div class="td"></div>
60                 </div>
61             </div>
62         </div>
63     </body>
64 </html>