summaryrefslogtreecommitdiffstats
path: root/layout/reftests/writing-mode/1108923-1-percentage-margins-ref.html
blob: ecd5c175dc351f01cce1498f512febcf9af5f6e0 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.outer {
  width:600px;
  height:200px;
  border:1px solid gray;
  background:#eee;
  font-size:0px;
}
.test1 {
  display:inline-block;
  position:relative;
  top:100px;
  left:300px;
  border:10px solid green;
  width:80px;
  height:30px;
}
.test2 {
  display:inline-block;
  position:relative;
  top:0px;
  left:250px;
  border:10px solid blue;
  width:80px;
  height:30px;
}
.test3 {
  display:inline-block;
  position:relative;
  top:20px;
  left:230px;
  border:10px solid yellow;
  width:80px;
  height:30px;
}
</style>
</head>

<body>

<div class="outer">

<div class="test3">
</div>

<div class="test2">
</div>

<div class="test1">
</div>

</div>

</body>
</html>