table-height-algorithm-012.xht (1420B)
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 'baseline' 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 'baseline' aligns the cell's content baseline (which is the bottom of the first line of text or in-flow content) with the baseline of the first of the rows it spans." /> 8 <style type="text/css"> 9 td 10 { 11 vertical-align: baseline; 12 } 13 #small 14 { 15 font-size: small; 16 } 17 #large 18 { 19 font-size: large; 20 } 21 </style> 22 </head> 23 <body> 24 <p>Test passes if the bottom of "Filler Text" below is aligned.</p> 25 <table> 26 <tr> 27 <td> 28 <div id="small">Filler Text</div> 29 </td> 30 <td rowspan="2"> 31 <div id="large">Filler Text</div> 32 </td> 33 </tr> 34 <tr> 35 <td></td> 36 </tr> 37 </table> 38 </body> 39 </html>