table-height-algorithm-025.xht (1593B)
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: Finding the baseline of a 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="The baseline of a cell is the baseline of the first in-flow line box in the cell or first in-flow table-row in the cell, whichever comes first." /> 8 <style type="text/css"> 9 table 10 { 11 border-spacing: 0; 12 } 13 .inline 14 { 15 display: inline-table; 16 } 17 td 18 { 19 vertical-align: baseline; 20 } 21 </style> 22 </head> 23 <body> 24 <p>Test passes if the bottom of the "Filler Text" below is aligned.</p> 25 <table> 26 <tr> 27 <td> 28 <h1>Filler Text</h1> 29 <table class="inline"> 30 <tr> 31 <td> </td> 32 </tr> 33 </table> 34 </td> 35 <td> 36 <table class="inline"> 37 <tr> 38 <td>Filler Text</td> 39 </tr> 40 </table> 41 <h1> </h1> 42 </td> 43 </tr> 44 </table> 45 </body> 46 </html>