summaryrefslogtreecommitdiffstats
path: root/layout/reftests/margin-collapsing/block-sibling-2.html
blob: 9dc60df51c072d6a624216c13e1d62185c7f3434 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#a {
 height: 20px;
 background-color: red;
 margin-bottom: 20px;
}
#b {
 height: 20px;
 background-color: blue;
 margin-top: 10px;
 margin-bottom: 10px;
 position: relative;
 top: 40px;
}
#c {
 height: 20px;
 background-color: green;
 margin-top: 20px;
 position: relative;
 top: -40px;
}
</style>
</head>
<body>
<div id="a"></div>
<div id="b"></div>
<div id="c"></div>
</body>
</html>