3 <title>Hit testing on preserves-
3d element
</title>
4 <style type=
"text/css" media=
"screen">
6 -webkit-perspective:
500px;
17 .should-be-visible { background-color: green !important; }
19 transform: rotate3d(
0,
0,
1,
45deg);
23 transform: rotate3d(
0,
0,
1, -
45deg);
24 -webkit-transform-style: preserve-
3d;
25 background-color: red;
33 <script type=
"text/javascript" charset=
"utf-8">
34 if (window.testRunner)
35 testRunner.dumpAsText();
39 var hit = document.elementFromPoint(
100,
100);
40 var results = document.getElementById('results');
41 if (hit == document.getElementById('target'))
42 results.innerHTML = 'Hit target without crashing: PASSED';
44 results.innerHTML = 'Did not crash but failed to find target: FAIL';
48 <body onload=
"runTest()">
51 <div class=
"container">
52 <div class=
"intermediate">
53 <div id=
"target" class=
"composited box should-be-visible"></div>
58 <div id=
"results"></div>