Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<title>Test for Bug 1473108</title>
<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>
<style>
.a {
background: green;
height: 64px;
width: 32px;
display: block;
}
span::before {
content: "";
background: red;
height: 32px;
width: 32px;
display: block;
}
span:active::after {
content: "";
}
</style>
</head>
<body>
<a class="a" id="event"><span id="target"></span></a>
<script type="application/javascript">
waitUntilApzStable().then(async () => {
let target = document.getElementById("target");
target.addEventListener("click", function(e) {
is(e.target, target, `Clicked on at (${e.clientX}, ${e.clientY})`);
subtestDone();
});
await synthesizeNativeTap(target, 5, 5);
});
</script>
</body>
</html>