caption-side-applies-to-011

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

WeasyPrint

This browser

Assertion
Caption-side does not apply to 'display: table-column' 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: table-column' 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: table-column' elements.">
10         <style type="text/css">
11             #table
12             {
13                 background: blue;
14                 display: table;
15             }
16             #column
17             {
18                 caption-side: bottom;
19                 display: table-column;
20             }
21             #caption
22             {
23                 display: table-caption;
24             }
25             #row
26             {
27                 display: table-row;
28             }
29             #cell
30             {
31                 background: blue;
32                 display: table-cell;
33                 height: 1in;
34                 width: 2in;
35             }
36         </style>
37     </head>
38     <body>
39         <p>Test passes if the "Filler Text" below is above the box.</p>
40         <div id="table">
41             <div id="column"></div>
42             <div id="caption">Filler Text</div>
43             <div id="row">
44                 <div id="cell"></div>
45             </div>
46         </div>
47     </body>
48 </html>