caption-side-applies-to-007

Caption-side and 'display: inline-table' elements

WeasyPrint

This browser

Assertion
Caption-side does not apply to 'display: inline-table' elements.

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: Caption-side and 'display: inline-table' elements</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#propdef-caption-side">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#caption-position">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="Caption-side does not apply to 'display: inline-table' elements.">
10         <style type="text/css">
11             #table
12             {
13                 background: blue;
14                 caption-side: bottom;
15                 display: inline-table;
16             }
17             #caption
18             {
19                 display: table-caption;
20             }
21             #row
22             {
23                 display: table-row;
24             }
25             #cell
26             {
27                 background: blue;
28                 display: table-cell;
29                 height: 1in;
30                 width: 2in;
31             }
32         </style>
33     </head>
34     <body>
35         <p>Test passes if the "Filler Text" below is below the box.</p>
36         <div id="table">
37             <div id="caption">Filler Text</div>
38             <div id="row">
39                 <div id="cell"></div>
40             </div>
41         </div>
42     </body>
43 </html>