blob: b3534574b1c754ba627878f5d608b9fe6ef59adb (
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
41
42
43
44
45
|
<!DOCTYPE HTML>
<html>
<head>
<title>Test for Bug 1246622</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<style>
#grandparent {
position: absolute;
height: 100px;
width: 100px;
left: 400px;
transform-style: preserve-3d;
}
#parent {
transform: translateX(0px);
}
#child {
width: 100px;
height: 100px;
background-color: green;
transform-style: preserve-3d;
}
</style>
</head>
<body>
<div id="grandparent">
<div id="parent">
<div id="child"></div>
</div>
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 1246622 **/
is(document.elementFromPoint(450,50), document.getElementById("child"), "Able to hit transformed object");
</script>
</pre>
</body>
</html>
|