Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / margin-collapse-abspos-negmargin.htm
blobf44a731d8aa2f17fecb6d0bac6a96fadeb669bff
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 - absolute positioning and siblings</title>
5 <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">
6 <meta name="flags" content="ahem image">
7 <meta name="assert" content="Absolutely positioned boxes do not collapse margins with siblings.">
8 <style type="text/css">
9 #div1
11 border-top: 1em solid green;
12 font: 20px/1em Ahem;
13 height: 3em;
14 width: 5em;
16 div div
18 height: 1em;
19 width: 5em;
21 #div2
23 margin-bottom: -5em;
25 #div3
27 margin-top: 10em;
28 background: green;
29 position: absolute;
31 #div4
33 top: 12em;
34 height: 1em;
35 width: 5em;
36 background: red;
37 position: absolute;
39 </style>
40 </head>
41 <body>
42 <p>Test passes if there is no red visible on the page.</p>
43 <div id="div4"></div>
44 <div id="div1">
45 <div id="div2"></div>
46 <div id="div3"></div>
47 </div>
48 </body>
49 </html>