table-anonymous-block-002

The anonymous block box around a table is not used for baseline vertical alignment

WeasyPrint

This browser

Assertion
The table box (and not anonymous containing block) is used for doing baseline vertical alignment for inline-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: The anonymous block box around a table is not used for baseline vertical alignment</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#model">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The table box (and not anonymous containing block) is used for doing baseline vertical alignment for inline-table.">
 9         <style type="text/css">
10             caption
11             {
12                 color: white;
13             }
14             #table
15             {
16                 background: black;
17                 border-spacing: 0;
18                 caption-side: bottom;
19                 display: inline-table;
20             }
21             td
22             {
23                 padding: 0;
24                 vertical-align: baseline;
25             }
26             div
27             {
28                 background: black;
29             }
30         </style>
31     </head>
32     <body>
33         <p>Test passes if the bottoms of the two boxes are vertically aligned.</p>
34         <table>
35             <tr>
36                 <td>
37                     <table id="table">
38                         <caption>XXXXXXXXX0</caption>
39                         <tr>
40                             <td>XXXXXXXXX0</td>
41                         </tr>
42                     </table>
43                 </td>
44                  <td>
45                     <div>XXXXXXXXX0</div>
46                 </td>
47             </tr>
48         </table>
49     </body>
50 </html>