blob: 9d0a9fa50c7604e6d1b1e5b974e613b2b29d0983 (
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
|
<!DOCTYPE HTML>
<html>
<head>
<title>APZ hit-testing with nested inactive transforms (bug 1459696)</title>
<script type="application/javascript" src="apz_test_utils.js"></script>
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<meta name="viewport" content="width=device-width"/>
<style>
.pane {
position: fixed;
top: 0;
bottom: 0;
}
.left {
left: 0;
right: 66vw;
overflow: auto;
}
.content {
width: 100%;
height: 200%;
background-image: linear-gradient(blue, green);
}
.right {
left: 34vw;
right: 0;
}
.list {
overflow: hidden;
transform: translate3d(0, 0, 0);
height: 100%;
}
.track {
height: 100%;
width: 2000px;
transform: translate3d(-856px, 0px, 0px);
}
.slide {
float: left;
height: 100%;
width: 856px;
background-image: linear-gradient(red, yellow);
}
</style>
</head>
<body>
<div class="left pane" id="left-pane">
<div class="content"></div>
</div>
<div class="right pane">
<div class="list">
<div class="track">
<div class="slide"></div>
<div class="slide"></div>
</div>
</div>
</div>
</body>
<script type="application/javascript">
async function test() {
var utils = getHitTestConfig().utils;
var leftPane = document.getElementById("left-pane");
checkHitResult(
hitTest(centerOf(leftPane)),
APZHitResultFlags.VISIBLE,
utils.getViewId(leftPane),
utils.getLayersId(),
"left pane was successfully hit");
}
waitUntilApzStable()
.then(test)
.then(subtestDone, subtestFailed);
</script>
</html>
|