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: Font-size and 'display: table-caption' elements</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-size-props">
8 <meta name="flags" content="ahem">
9 <meta name="assert" content="The 'font-size' property applies to 'display: table-caption' elements.">
10 <style type="text/css">
11 #div1
12 {
13 background: orange;
14 height: 1in;
15 width: 1in;
16 }
17 div
18 {
19 font-family: Ahem;
20 line-height: 1em;
21 }
22 #table
23 {
24 display: table;
25 }
26 #test
27 {
28 font-size: 1in;
29 }
30 #row
31 {
32 display: table-row;
33 }
34 #cell
35 {
36 display: table-cell;
37 }
38 </style>
39 </head>
40 <body>
41 <p>Test passes if the boxes below are the same size.</p>
42 <div id="div1"></div>
43 <div id="table">
44 <div id="test">X</div>
45 <div id="row">
46 <div id="cell"></div>
47 </div>
48 </div>
49 </body>
50 </html>