blob: 33a1eb113e5ad40111009e146a685da0859a7031 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that a tap on an element with display: contents dispatches a "click" event.</title>
<script src="../../../resources/basic-gestures.js"></script>
<style>
body {
margin: 0;
}
#target {
width: 100px;
height: 100px;
background-color: black;
display: contents;
}
</style>
</head>
<body>
<div id="target">FAIL</div>
<script>
(function() {
if (!window.testRunner || !testRunner.runUIScript)
return;
testRunner.waitUntilDone();
testRunner.dumpAsText();
const target = document.getElementById("target");
target.addEventListener("click", event => {
target.innerText = "PASS";
testRunner.notifyDone();
});
tapAtPoint(0, 0);
})();
</script>
</body>
</html>