blob: f0e3b2ca7f730898754526e679de5663f8524d5f (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
body {
margin: 0;
height: 1000px;
}
.container {
position: absolute;
z-index: 1;
left: 95px;
top: 145px;
width: 50px;
height: 50px;
outline: 4px solid black;
}
.fixed {
position: fixed;
background-color: green;
height: 100px;
width: 100px;
top: 20px;
left: 20px;
}
.composited {
transform: translateZ(0);
}
.container.two {
left: 200px;
top: 100px;
}
.container.three {
left: 400px;
top: 100px;
}
.box {
width: 100px;
height: 100px;
}
.composited.box {
width: 60px;
height: 60px;
}
.transformed {
transform: translate(0, 0);
}
.indicator {
position: absolute;
background-color: red;
left: 20px;
top: 70px;
}
.indicator.two {
left: 220px;
top: 120px;
}
.indicator.three {
left: 420px;
top: 120px;
}
p {
margin-top: 150px;
}
</style>
<script type="text/javascript" charset="utf-8">
window.addEventListener('load', function() {
window.scrollBy(50, 50);
}, false);
</script>
</head>
<body>
<div class="indicator box"></div>
<div class="indicator box two"></div>
<div class="indicator box three"></div>
<div class="composited box" style="background-color: rgba(0, 0, 255, 0.2)"></div>
<div class="container">
<div class="fixed">
</div>
</div>
<div class="container composited two">
<div class="fixed">
</div>
</div>
<div class="container three">
<div class="transformed box">
<div class="fixed"></div>
</div>
</div>
<p>You should see no red above.</p>
</body>
</html>
|