table-height-algorithm-028

Baseline of a cell might end up below its bottom border

WeasyPrint

This browser

Flags
ahem, may
Assertion
The baseline of a cell may end up below its bottom border (modified example from spec section 17.5.3).

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: Baseline of a cell might end up below its bottom border</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="ahem may">
 8         <meta name="assert" content="The baseline of a cell may end up below its bottom border (modified example from spec section 17.5.3).">
 9         <style type="text/css">
10             table
11             {
12                 height: 100px;
13             }
14             td
15             {
16                 font: 20px/1em Ahem;
17                 vertical-align: baseline;
18             }
19             #cell
20             {
21                 color: blue;
22             }
23             div
24             {
25                 height: 0;
26             }
27          </style>
28      </head>
29      <body>
30         <p>Test passes regardless if the black box is closer to the top of the page than the blue box, or it is not.</p>
31         <table>
32             <tr>
33                 <td id="cell">
34                     <div>Test</div>
35                     XXXXXXXXXX
36                 </td>
37                 <td>XXXXXXXXXX</td>
38             </tr>
39         </table>
40     </body>
41 </html>