blob: d4c6ba1db73f7aa7836b6d8c5d250fda6bdb63a1 (
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
|
<!doctype html>
<html>
<head>
<title>PointerEvent: Events still bubble to ancestors with display: none </title>
<meta name="viewport" content="width=device-width">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<style>
#wrapper:active {
display: none;
}
#parent {
width: 100px;
height: 100px;
background-color: green;
}
</style>
</head>
<body>
<div id="parent">
<div id="wrapper">
<button>click me</button>
</div>
</div>
<script>
promise_test(function() {
const parentClickedPromise = new Promise(r => {
document.getElementById("parent").addEventListener("click", r);
});
const click = test_driver.click(document.querySelector("button"));
return Promise.all([click, parentClickedPromise]);
})
</script>
</body>
|