blob: 48f03a51d95d469ca39a1affafbb4b3418a1c69c (
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
|
<!DOCTYPE HTML>
<html>
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<script src="apz_test_utils.js"></script>
<style>
body {
margin: 0px;
}
#target {
width: 100%;
height: 100vh;
background: blue;
overflow: scroll;
}
</style>
</head>
<body>
<div id="target">
</div>
</body>
<script>
window.addEventListener("wheel", () => {
window.parent.postMessage("child-received-wheel-event", "*");
});
</script>
</html>
|