containing-block-027

Content is not confined by containing blocks

WeasyPrint

This browser

Flags
may
Assertion
Content may overflow containing blocks.

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: Content is not confined by containing blocks</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#containing-block">
 7         <meta name="flags" content="may">
 8         <meta name="assert" content="Content may overflow containing blocks.">
 9         <style type="text/css">
10             div
11             {
12                 background: blue;
13                 height: 1in;
14                 padding-top: 5px;
15                 width: 1in;
16             }
17             div div
18             {
19                 background: orange;
20                 height: 0.5in;
21                 width: 2in;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if the orange box is within or overflows outside of the blue box.</p>
27         <div>
28             <div></div>
29         </div>
30     </body>
31 </html>