table-height-algorithm-011

Vertical-align set to 'baseline' aligns the cell content baseline with baseline of the row

WeasyPrint

This browser

Assertion
A cell with Vertical-align set to 'baseline' aligns the cell's content baseline with the baseline of the row.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: Vertical-align set to 'baseline' aligns the cell content baseline with baseline of the row</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="flags" content="">
 8         <meta name="assert" content="A cell with Vertical-align set to 'baseline' aligns the cell's content baseline with the baseline of the row.">
 9         <style type="text/css">
10             td
11             {
12                 vertical-align: baseline;
13             }
14             #big
15             {
16                 font-size: 30px;
17             }
18             #bigger
19             {
20                 font-size: 60px;
21             }
22             #biggest
23             {
24                 font-size: 90px;
25             }
26         </style>
27     </head>
28     <body>
29         <p>Test passes if the bottom of "Filler Text" below is aligned.</p>
30         <table>
31             <tr>
32                 <td id="big">FillerText</td>
33                 <td id="bigger">FillerText</td>
34                 <td id="biggest">FillerText</td>
35             </tr>
36         </table>
37     </body>
38 </html>