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: Floats with overflow:hidden next to them</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/root-formatting-contexts/001.html" type="text/html">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats">
9 <style type="text/css">
10 .outer { background: red; height: 300px; width: 300px; }
11 .block { background: green; height: auto; width: 300px; }
12 .float { background: green; height: 150px; width: 150px; float: left; }
13 .overflow { background: green; height: 150px; width: 200px; overflow: hidden; }
14 </style>
15 </head>
16 <body>
17 <p>There should be a green square below with no red.</p>
18 <div class="outer">
19 <div class="block">
20 <div class="float"></div>
21 <div class="overflow"></div>
22 </div>
23 </div>
24 </body>
25 </html>