1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3
4 <head>
5
6 <title>CSS Test: Content is not confined by containing blocks</title>
7
8 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#containing-block">
10 <meta content="may" name="flags">
11 <meta content="Content may overflow containing blocks." name="assert">
12
13 <style type="text/css">
14 div#containing-block
15 {
16 background-color: blue;
17 height: 1in;
18 padding-left: 5px;
19 width: 1in;
20 }
21
22 div#sole-child-with-taller-content
23 {
24 background-color: orange;
25 height: 2in;
26 width: 0.5in;
27 }
28 </style>
29 </head>
30
31 <body>
32
33 <p>Test passes if the orange box is within or overflows below and outside of the blue box.</p>
34
35 <div id="containing-block">
36 <div id="sole-child-with-taller-content"></div>
37 </div>
38
39 </body>
40 </html>