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: Vertical-align set to 'top' with a spanning cell</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="">
8 <meta name="assert" content="A spanning cell with Vertical-align set to 'top' aligns the cell's content to the top of the first row that it spans.">
9 <style type="text/css">
10 table
11 {
12 height: 100px;
13 }
14 td
15 {
16 border: 1px solid black;
17 vertical-align: top;
18 }
19 #small
20 {
21 font-size: small;
22 }
23 #large
24 {
25 font-size: large;
26 }
27 </style>
28 </head>
29 <body>
30 <p>Test passes if the "Filler Text" below is vertically aligned to the top of their boxes.</p>
31 <table>
32 <tr>
33 <td>
34 <div id="small">Filler Text</div>
35 </td>
36 <td rowspan="2" colspan="2">
37 <div id="large">Filler Text</div>
38 </td>
39 </tr>
40 <tr>
41 <td></td>
42 </tr>
43 </table>
44 </body>
45 </html>