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-row</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-row' is rendered as if it were a table row.">
9 <style type="text/css">
10 #table
11 {
12 display: table;
13 }
14 .tr
15 {
16 background: black;
17 display: table-row;
18 }
19 .td
20 {
21 display: table-cell;
22 height: 2em;
23 width: 2em;
24 }
25 </style>
26 </head>
27 <body>
28 <p>Test passes if there is a square below.</p>
29 <div id="table">
30 <div class="tr">
31 <div class="td"></div>
32 <div class="td"></div>
33 <div class="td"></div>
34 <div class="td"></div>
35 </div>
36 <div class="tr">
37 <div class="td"></div>
38 <div class="td"></div>
39 <div class="td"></div>
40 <div class="td"></div>
41 </div>
42 <div class="tr">
43 <div class="td"></div>
44 <div class="td"></div>
45 <div class="td"></div>
46 <div class="td"></div>
47 </div>
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>
55 </body>
56 </html>