overflow-applies-to-003

overflow applied to elements with 'display' set to 'table-footer-group'

WeasyPrint

This browser

Flags
ahem
Assertion
The 'overflow' property does not apply to elements with 'display' set to 'table-footer-group'.

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: overflow applied to elements with 'display' set to 'table-footer-group'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The 'overflow' property does not apply to elements with 'display' set to 'table-footer-group'.">
10         <style type="text/css">
11             #test
12             {
13                 display: table-footer-group;
14                 overflow: hidden;
15             }
16             #table
17             {
18                 border: 5px solid transparent;
19                 color: white;
20                 display: table;
21                 font: 20px/1em Ahem;
22                 height: 5em;
23                 table-layout: fixed;
24                 width: 5em;
25             }
26             #row
27             {
28                 display: table-row;
29             }
30             #cell
31             {
32                 display: table-cell;
33                 white-space: nowrap;
34             }
35             #span2
36             {
37                 color: green;
38             }
39         </style>
40     </head>
41     <body>
42         <p>Test passes if there is a green box below.</p>
43         <div id="table">
44             <div id="test">
45                 <div id="row">
46                     <div id="cell"><span>XXXXX</span><span id="span2">XXXXX</span></div>
47                 </div>
48             </div>
49         </div>
50     </body>
51 </html>