caption-side-applies-to-008

Caption-side and 'display: table-row-group' elements

WeasyPrint

This browser

Assertion
Caption-side does not apply to 'display: table-row-group' 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-row-group' 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-row-group' elements.">
10         <style type="text/css">
11             #table
12             {
13                 background: blue;
14                 display: table;
15             }
16             #caption
17             {
18                 display: table-caption;
19             }
20             #test
21             {
22                 caption-side: bottom;
23                 display: table-row-group;
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="caption">Filler Text</div>
42             <div id="test">
43                 <div id="row">
44                     <div id="cell"></div>
45                 </div>
46             </div>
47         </div>
48     </body>
49 </html>