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-header-group</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="An element with 'display: table-header-group' is rendered as if it were a table header group.">
9 <style type="text/css">
10 .table
11 {
12 border: 2px solid black;
13 display: table;
14 }
15 .header
16 {
17 background: blue;
18 display: table-header-group;
19 }
20 .tr
21 {
22 display: table-row;
23 }
24 .td
25 {
26 display: table-cell;
27 height: 2em;
28 width: 2em;
29 }
30 </style>
31 </head>
32 <body>
33 <p>Test passes if there is a square below, and the top half of the square is blue.</p>
34 <div class="table">
35 <div class="tr">
36 <div class="td"></div>
37 <div class="td"></div>
38 <div class="td"></div>
39 <div class="td"></div>
40 </div>
41 <div class="tr">
42 <div class="td"></div>
43 <div class="td"></div>
44 <div class="td"></div>
45 <div class="td"></div>
46 </div>
47 <div class="header">
48 <div class="tr">
49 <div class="td"></div>
50 <div class="td"></div>
51 <div class="td"></div>
52 <div class="td"></div>
53 </div>
54 <div class="tr">
55 <div class="td"></div>
56 <div class="td"></div>
57 <div class="td"></div>
58 <div class="td"></div>
59 </div>
60 </div>
61 </div>
62 </body>
63 </html>