3 <title>More point mapping through
3D transform hierarchies
</title>
4 <script src=
"point-mapping-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
5 <script type=
"text/javascript" charset=
"utf-8">
9 // Scroll so that frame view offsets are non-zero
10 // window.scrollTo(
20,
100);
12 // document.getElementById('overflow').scrollLeft =
80;
13 // document.getElementById('overflow').scrollTop =
60;
15 // In non-test mode, show the mouse coords for testing
16 if (!window.testRunner)
17 document.body.addEventListener('mousemove', mousemoved, false);
19 dispatchEvent(
120,
128, 'box4',
2,
2);
20 dispatchEvent(
336,
87, 'box7',
2,
2);
21 dispatchEvent(
348,
86, 'box8',
2,
2);
23 dispatchEvent(
582,
87, 'box11',
2,
2);
24 dispatchEvent(
594,
86, 'box12',
2,
2);
27 <style type=
"text/css" media=
"screen">
31 border:
1px solid black;
36 display: inline-block;
39 border:
1px solid black;
46 -webkit-box-sizing: border-box;
47 background-color: #DDD;
48 border:
1px solid black;
52 outline:
3px solid orange;
59 border:
1px solid black;
60 -webkit-box-sizing: border-box;
61 -webkit-perspective:
400;
70 border:
1px solid black;
71 background-color: #
81AA8A;
72 -webkit-transform-style: preserve-
3d;
73 -webkit-box-sizing: border-box;
82 border:
1px solid black;
83 background-color: #AA7994;
84 -webkit-transform-style: flat;
85 -webkit-box-sizing: border-box;
89 background-color: blue;
92 transform: rotateY(
30deg);
110 <body onclick=
"clicked(event)">
112 <div id=
"results"></div>
115 <!-- preserve-3d element with no transform-->
116 <div class=
"container box" id=
"box1">
117 <div class=
"transformed-3d box" style=
"transform: rotateY(-30deg);" id=
"box2">
118 <div class=
"transformed-3d box" id=
"box3">
119 <div class=
"inner box" id=
"box4">
127 <!-- layer with no transform-->
128 <div class=
"container box" id=
"box5">
129 <div class=
"transformed-3d box" style=
"transform: rotateY(-30deg);" id=
"box6">
130 <div class=
"box" style=
"position: relative; padding-left: 20px" id=
"box7">
131 <div class=
"inner box" id=
"box8">
139 <!-- non-layer with no transform-->
140 <div class=
"container box" id=
"box9">
141 <div class=
"transformed-3d box" style=
"transform: rotateY(-30deg);" id=
"box10">
142 <div class=
"box" style=
"padding-left: 20px" id=
"box11">
143 <div class=
"inner box" id=
"box12">
150 <div id=
"mousepos"></div>