3 <title>Hit test overlapping
3d elements
</title>
4 <script src=
"point-mapping-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
6 <script type=
"text/javascript" charset=
"utf-8">
10 dispatchEvent(
285,
50, 'box2',
198,
2);
11 dispatchEvent(
174,
108, 'box3',
50,
2);
13 dispatchEvent(
61,
50, 'overlay',
39,
28);
14 dispatchEvent(
119,
108, 'overlay',
97,
86);
18 <style type=
"text/css" media=
"screen">
22 border:
1px solid black;
27 display: inline-block;
31 border:
1px solid black;
38 -webkit-box-sizing: border-box;
39 background-color: #DDD;
40 border:
1px solid black;
44 outline:
3px solid orange;
52 border:
1px solid black;
53 -webkit-box-sizing: border-box;
54 -webkit-perspective:
400;
63 border:
1px solid black;
64 background-color: #AAA;
65 -webkit-box-sizing: border-box;
66 transform: translateZ(
50px);
73 background-color: rgba(
0,
128,
0,
0.3);
74 transform: translateZ(
100px);
79 background-color: blue;
100 <body onclick=
"clicked(event)">
102 <div id=
"results"></div>
104 <!-- Simple transformed div in perpsective -->
105 <div class=
"container box" id=
"box1">
106 <div class=
"transformed box" id=
"box2">
107 <div class=
"inner" id=
"box3"></div>
110 <div id=
"overlay"></div>
112 <p>The green overlay is translated in Z by
100px, so should hit test in front relative to the blue box.
</p>
114 <div id=
"mousepos"></div>