summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1509425-1.html
blob: 5d6e0e9e28eb9bccf27f7442029b608f7e670c6c (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
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">

<title>Bug 1271714: Hit testing should be able to find the .opacityFilter element</title>

<style type="text/css">

#opacityFilter {
  border: 1px solid black;
  height: 200px;
  width: 200px;
  filter: opacity(0);
}

</style>

<p id="output">FAIL</p>

<div id="opacityFilter"></div>

<script>

if (document.elementFromPoint(100, 100).id == "opacityFilter") {
  document.getElementById("output").textContent = "PASS";
}

</script>