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: Specifying 'auto' height on a row assigns it its minimum content height</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#height-layout">
7 <meta name="flags" content="ahem">
8 <meta name="assert" content="This tests that setting 'height: auto' on a row assigns the row its minimum content height.">
9 <style type="text/css">
10 #reference
11 {
12 background: blue;
13 font: 20px/1em Ahem;
14 height: 10em;
15 width: 20em;
16 }
17 table
18 {
19 background: black;
20 border-spacing: 0;
21 }
22 tr
23 {
24 height: auto;
25 }
26 td
27 {
28 padding: 0;
29 }
30 </style>
31 </head>
32 <body>
33 <p>Test passes if the boxes below are the same height.</p>
34 <div id="reference">
35 <table>
36 <tr>
37 <td>XXXXXXXXXX<br>
38 XXXXXXXXXX<br>
39 XXXXXXXXXX<br>
40 XXXXXXXXXX<br>
41 XXXXXXXXXX<br>
42 XXXXXXXXXX<br>
43 XXXXXXXXXX<br>
44 XXXXXXXXXX<br>
45 XXXXXXXXXX<br>
46 XXXXXXXXXX<br>
47 </td>
48 </tr>
49 </table>
50 </div>
51 </body>
52 </html>