table-height-algorithm-032.xht (1461B)
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: Inline-table baseline and caption</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 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#leading" /> 8 <meta name="assert" content="A table caption does not set the baseline for an inline-table." /> 9 <style type="text/css"> 10 table 11 { 12 display: inline-table; 13 } 14 caption 15 { 16 color: white; 17 } 18 td 19 { 20 border: 1px solid black; 21 height: 100px; 22 vertical-align: baseline; 23 } 24 </style> 25 </head> 26 <body> 27 <p>Test passes if the bottoms of the two sets of "Filler Text" below are aligned.</p> 28 <table> 29 <tr> 30 <td> 31 <table> 32 <caption>Filler Text</caption> 33 <tr> 34 <td>Filler Text</td> 35 </tr> 36 </table> 37 </td> 38 <td>Filler Text</td> 39 </tr> 40 </table> 41 </body> 42 </html>