9 background-color: gray;
20 transform-style: preserve-
3d;
31 background-color: red;
32 transform: perspective(
600px ) rotateY(
45deg );
36 background-color: blue;
37 transform: perspective(
600px ) rotateY( -
45deg );
40 /* target1 contain points with negative z-offsets */
46 background-color: #DDD;
47 transform: rotate3d(
0,
1,
0, -
45deg);
48 transform-origin: right;
55 <script src=
"resources/hit-test-utils.js"></script>
59 { 'point': [10, 100], 'target' : 'container-nopreserve' },
60 { 'point': [20, 100], 'target' : 'target2' },
61 { 'point': [80, 100], 'target' : 'target1' },
62 { 'point': [100, 100], 'target' : 'target1' },
63 { 'point': [120, 100], 'target' : 'target1' },
64 { 'point': [180, 100], 'target' : 'target1' },
65 { 'point': [190, 100], 'target' : 'container-nopreserve' },
67 { 'point': [10, 250], 'target' : 'container-preserve' },
68 { 'point': [20, 250], 'target' : 'target4' },
69 { 'point': [80, 250], 'target' : 'target4' },
70 { 'point': [100, 250], 'target' : 'target4' },
71 { 'point': [120, 250], 'target' : 'target3' },
72 { 'point': [180, 250], 'target' : 'target3' },
73 { 'point': [190, 250], 'target' : 'container-preserve' },
76 window
.addEventListener('load', runTest
, false);
81 <div id=
"container-nopreserve" class=
"container nopreserve">
82 <div id=
"target2" class=
"box red">
84 <div id=
"target1" class=
"box blue">
88 <div id=
"container-preserve" class=
"container preserve">
89 <div id=
"target3" class=
"box blue">
91 <div id=
"target4" class=
"box red">
95 <p id=
"description">Checks that hit testing is correct when two layers with negative z-offset overlap
</p>
97 <div id=
"results"></div>