table-height-algorithm-012

Vertical-align set to 'baseline' with a spanning cell

WeasyPrint

This browser

Assertion
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.

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' 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="flags" content="">
 8         <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.">
 9         <style type="text/css">
10             td
11             {
12                 vertical-align: baseline;
13             }
14             #small
15             {
16                 font-size: small;
17             }
18             #large
19             {
20                 font-size: large;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if the bottom of "Filler Text" below is aligned.</p>
26         <table>
27             <tr>
28                 <td>
29                     <div id="small">Filler Text</div>
30                 </td>
31                 <td rowspan="2" colspan="2">
32                     <div id="large">Filler Text</div>
33                 </td>
34             </tr>
35             <tr>
36                 <td></td>
37             </tr>
38         </table>
39     </body>
40 </html>