summaryrefslogtreecommitdiffstats
path: root/layout/reftests/margin-collapsing/block-percent-2.html
blob: 0137dc9b9f8e3409e93d57cc817f5f5c602fd8e2 (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
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#parent1 {
 width: 200px;
}
#block1 {
 height: 50px;
 margin-bottom: 20%;
 background-color: green;
}
#parent2 {
 width: 500px;
}
#block2 {
 height: 50px;
 margin-top: 10%;
 background-color: green;
}
</style>
</head>
<body>
<div id="parent1">
 <div id="block1"></div>
</div>
<div id="parent2">
 <div id="block2"></div>
</div>
</body>
</html>