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: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and margins top and bottom are 'auto'</title>
5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block">
7 <meta name="flags" content="">
8 <meta name="assert" content="The margin top and bottom used values are '0' for block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and margin top and bottom both are 'auto'.">
9 <style type="text/css">
10 #div1
11 {
12 border-bottom: solid orange;
13 border-top: solid orange;
14 width: 1in;
15 }
16 div div
17 {
18 background: blue;
19 margin-bottom: auto;
20 margin-top: auto;
21 }
22 </style>
23 </head>
24 <body>
25 <p>Test passes if there is no white space between the blue box below and the orange lines.</p>
26 <div id="div1">
27 <div>Filler Text</div>
28 </div>
29 </body>
30 </html>