blob: 404274d3f45e54ac8da79875a9313c5047119854 (
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
|
<!DOCTYPE html>
<head>
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
<script type="application/javascript" src="apz_test_utils.js"></script>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<script type="application/javascript">
async function test() {
var subframe = document.getElementById("content-wrapper");
// scroll over the middle of the subframe, to make sure it scrolls,
// not the page
var scrollPos = subframe.scrollTop;
await promiseMoveMouseAndScrollWheelOver(subframe, 100, 100);
ok(subframe.scrollTop > scrollPos, "subframe scrolled after wheeling over it");
}
waitUntilApzStable()
.then(test)
.then(subtestDone, subtestFailed);
</script>
<style>
html {
perspective:1000px;
overflow: hidden;
}
#fullscreen-wrapper {
display:table;
visibility:hidden;
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
overflow:hidden;
z-index:9999;
perspective:1000px;
}
#content-wrapper {
overflow-y:auto;
height: 100vh;
}
#content-content {
min-height: 10000px;
}
</style>
</head>
<body>
<div id="fullscreen-wrapper">
<div></div>
</div>
<div id="content-wrapper">
<div id="content-content">
A<br>
B<br>
C<br>
D<br>
E<br>
f<br>
g<br>
h<br>
i<br>
j<br>
</div>
</div>
</body>
|