table-height-algorithm-014.xht (1464B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 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="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." /> 8 <style type="text/css"> 9 table 10 { 11 height: 100px; 12 } 13 td 14 { 15 border: 1px solid black; 16 vertical-align: top; 17 } 18 #small 19 { 20 font-size: small; 21 } 22 #large 23 { 24 font-size: large; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if the "Filler Text" below is vertically aligned to the top of their boxes.</p> 30 <table> 31 <tr> 32 <td> 33 <div id="small">Filler Text</div> 34 </td> 35 <td rowspan="2"> 36 <div id="large">Filler Text</div> 37 </td> 38 </tr> 39 <tr> 40 <td></td> 41 </tr> 42 </table> 43 </body> 44 </html>