blob: 6243faacc1eebe7da5a979c9dce4735458ae6775 (
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
60
61
62
63
|
<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 100px;
height: 100px;
}
.green {
background-color: green;
}
.lime {
background-color: lime;
}
.blue {
background-color: blue;
}
.behind {
position: absolute;
top: 50px;
left: 50px;
}
.inmiddle {
position: absolute;
top: 80px;
left: 80px;
}
.ontop {
position: absolute;
top: 110px;
left: 110px;
}
#layertree {
position: absolute;
left: 10000px;
top: 0px;
}
body {
overflow: hidden;
}
</style>
</head>
<body>
<!-- This green div should be completely underneath the lime div -->
<div class="green box behind"> </div>
<!-- This lime colored div should correctly detect overlap and become composited. -->
<div class="lime box inmiddle"> </div>
<!-- The blue colord div should also correctly detect overlap on top of the second layer. -->
<div class="blue box ontop"> </div>
</body>
</html>
|