7 transform: translateY(
50px) rotateX(
20deg) rotateZ(
10deg);
10 background-color: Yellow;
12 #transformed, #parent {
17 transform: rotateX(
45deg) rotateZ(
45deg) translateZ(-
500px) translateX(-
300px) translateY(-
180px);
19 background-color: Lime;
22 transform: translateZ(-
500px) rotateX(-
45deg) rotateZ(-
45deg) translateX(
50px) translateY(-
130px);
24 background-color: Cyan;
32 <script src=
"resources/hit-test-utils.js"></script>
35 { 'point': [70, 70], 'target' : 'transformed' },
36 { 'point': [630, 130], 'target' : 'transformed' },
37 { 'point': [40, 130], 'target' : 'transformed' },
38 { 'point': [620, 270], 'target' : 'transformed' },
39 { 'point': [130, 100], 'target' : 'child1' },
40 { 'point': [200, 110], 'target' : 'child2' }
43 window
.addEventListener('load', runTest
, false);
49 <div id=
"transformed">transformed
50 <div id=
"child1">child
1</div>
51 <div id=
"nonTransformedChild">non transformed child
</div>
52 <div id=
"child2">child
2</div>
56 <p id=
"description">Checks that hit testing is correct when a transformed element has childs with negative z-offset
</p>
58 <div id=
"results"></div>