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: in flow text (simple)</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/031.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 */
11 .test { margin: 1em; background: green; font: 40px/1 Ahem; width: 3em; }
12 .test div { color: white; margin: 1em; }
13 </style>
14 </head>
15 <body>
16 <div class="ahem">Ahem_font_required_for_this_test.</div>
17 <p>There should be a big square green H below:</p>
18 <div class="test">
19 <div>X</div>
20 <div>X</div>
21 </div>
22
23
24 </body>
25 </html>