Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / margin-collapse-027.htm
blob913096e0dac8a01bfbbbdcc355ccabfa3d2831cc
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: Margin collapsing - bottom margin not collapse when cleared</title>
5 <script src="../../resources/ahem.js"></script>
6 <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">
8 <link rel="match" href="clearance-006-ref.htm">
10 <meta name="flags" content="ahem image">
11 <meta name="assert" content="When a last sibling has clearance, its own margins collapse and it collapsed its margins with a subsequent sibling, the last sibling does not collapse its bottom margin with its parent's bottom margin.">
12 <style type="text/css">
13 div
15 font: 20px/1em Ahem;
16 width: 5em;
18 #div1
20 background: url('support/margin-collapse-4em-space.png');
21 height: 6em;
23 #div2
25 margin-bottom: 2em;
27 #div3, #div5
29 margin-bottom: 1em;
31 #div3, #div6
33 background: green;
34 height: 1em;
36 #div4
38 float: left;
39 height: 1em;
41 #div5
43 clear: both;
44 margin-top: 1.5em;
46 </style>
47 </head>
48 <body>
49 <p>Test passes if there is no red.</p>
50 <div id="div1">
51 <div id="div2">
52 <div id="div3"></div>
53 <div id="div4"></div>
54 <div id="div5"></div>
55 </div>
56 <div id="div6"></div>
57 </div>
58 </body>
59 </html>