Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>Test for Bug 731777</title> |
michael@0 | 5 | <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 6 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
michael@0 | 7 | <style> |
michael@0 | 8 | #container { |
michael@0 | 9 | position: relative; |
michael@0 | 10 | height: 300px; |
michael@0 | 11 | width: 300px; |
michael@0 | 12 | margin: 50px 100px; |
michael@0 | 13 | border: 2px solid blue; |
michael@0 | 14 | background-color: #044B0A; |
michael@0 | 15 | |
michael@0 | 16 | -moz-perspective: 500px; |
michael@0 | 17 | overflow:hidden; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | #inner { |
michael@0 | 21 | margin: 0px; |
michael@0 | 22 | width: 480px; |
michael@0 | 23 | border: 2px solid blue; |
michael@0 | 24 | height: 220px; |
michael@0 | 25 | background-color: #844BCA; |
michael@0 | 26 | |
michael@0 | 27 | -moz-transform: rotateY(91deg) translateX(0px) translateZ(0px); |
michael@0 | 28 | transition: 5s; |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | </style> |
michael@0 | 32 | </head> |
michael@0 | 33 | <body> |
michael@0 | 34 | <div id="container"> |
michael@0 | 35 | <div id="inner"></div> |
michael@0 | 36 | </div> |
michael@0 | 37 | |
michael@0 | 38 | <pre id="test"> |
michael@0 | 39 | <script type="application/javascript"> |
michael@0 | 40 | |
michael@0 | 41 | /** Test for Bug 731777 **/ |
michael@0 | 42 | |
michael@0 | 43 | is(document.elementFromPoint(325,170), document.getElementById("inner"), "Able to hit transformed object"); |
michael@0 | 44 | is(document.elementFromPoint(405,170), document.getElementById("inner"), "Able to hit transformed object"); |
michael@0 | 45 | |
michael@0 | 46 | </script> |
michael@0 | 47 | </pre> |
michael@0 | 48 | </body> |
michael@0 | 49 | </html> |