table-height-algorithm-026.xht (1493B)
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 when no in-flow lines or rows</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 determined by the bottom content edge of a cell when in-flow line boxes and table rows are not present." /> 8 <style type="text/css"> 9 table 10 { 11 border-collapse: collapse; 12 border-spacing: 0; 13 height: 200px; 14 } 15 td 16 { 17 padding: 0; 18 vertical-align: baseline; 19 } 20 div, button 21 { 22 background: white; 23 border: none; 24 font: 64px serif; 25 padding: 0; 26 margin: 0; 27 } 28 div 29 { 30 margin-left: -10px; 31 } 32 </style> 33 </head> 34 <body> 35 <p>Test passes if there is a single continuous, unbroken line below.</p> 36 <table> 37 <tr> 38 <td><button>__________</button></td> 39 <td><div>__________</div></td> 40 </tr> 41 </table> 42 </body> 43 </html>