1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: Margin Collapsing: basic overflow test</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/margin-collapse/030.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">
8 <style type="text/css">
9 .ahem { display: inline; font: 1em/1 Ahem, sans-serif; background: red; color: white; }
10 .test { border: solid; background: red; width: 5em; font: 1em/1em Ahem; }
11 .test .a { height: 0; margin: 0 0 1em 0; background: red; color: lime; }
12 .test .b { height: 1em; margin: 1em 0 0 0; background: lime; }
13 </style>
14 </head>
15 <body>
16 <div class="ahem">Ahem_font_required_for_this_test.</div>
17 <p>There should be no red below.</p>
18 <div class="test">
19 <p class="a">XXXXX</p>
20 <p class="b"></p>
21 </div>
22
23
24 </body>
25 </html>