table-height-algorithm-031

Table baseline and caption

WeasyPrint

This browser

Assertion
A table caption does not set the baseline for a table.

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: 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="flags" content="">
 9         <meta name="assert" content="A table caption does not set the baseline for a table.">
10         <style type="text/css">
11             caption
12             {
13                 color: white;
14             }
15             td
16             {
17                 border: 1px solid black;
18                 height: 100px;
19                 vertical-align: baseline;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if the bottoms of the two sets of "Filler Text" below are aligned.</p>
25         <table>
26             <tr>
27                 <td>
28                     <table>
29                         <caption>Filler Text</caption>
30                         <tr>
31                             <td>Filler Text</td>
32                         </tr>
33                     </table>
34                 </td>
35                 <td>Filler Text</td>
36             </tr>
37         </table>
38     </body>
39 </html>