OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #container { | 5 #container { |
6 position: absolute; | 6 position: absolute; |
7 height: 200px; | 7 height: 200px; |
8 width:200px; | 8 width:200px; |
9 top: 0; | 9 top: 0; |
10 left: 0; | 10 left: 0; |
11 background-color: gray; | 11 background-color: gray; |
12 } | 12 } |
13 | 13 |
14 /* target contain points with negative z-offsets */ | 14 /* target contain points with negative z-offsets */ |
15 #target { | 15 #target { |
16 position: relative; | 16 position: relative; |
17 height: 160px; | 17 height: 160px; |
18 width: 160px; | 18 width: 160px; |
19 margin: 20px; | 19 margin: 20px; |
20 background-color: #DDD; | 20 background-color: #DDD; |
21 -webkit-transform: rotate3d(0, 1, 0, -45deg); | 21 transform: rotate3d(0, 1, 0, -45deg); |
22 -webkit-transform-origin: right; | 22 -webkit-transform-origin: right; |
23 } | 23 } |
24 | 24 |
25 #description { | 25 #description { |
26 margin-top: 210px; | 26 margin-top: 210px; |
27 } | 27 } |
28 | 28 |
29 </style> | 29 </style> |
30 <script src="resources/hit-test-utils.js"></script> | 30 <script src="resources/hit-test-utils.js"></script> |
31 <script> | 31 <script> |
(...skipping 16 matching lines...) Expand all Loading... |
48 <div id="target"> | 48 <div id="target"> |
49 </div> | 49 </div> |
50 </div> | 50 </div> |
51 | 51 |
52 <p id="description">Checks that hit testing is correct when a transformed elem
ent has negative z-offset</p> | 52 <p id="description">Checks that hit testing is correct when a transformed elem
ent has negative z-offset</p> |
53 | 53 |
54 <div id="results"></div> | 54 <div id="results"></div> |
55 | 55 |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |