test_bug1278021.html (844B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Test for Bug 1278021</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 7 <style type="text/css"> 8 #parent { 9 transform-style: preserve-3d; 10 } 11 12 #firstchild { 13 width: 100%; 14 height: 226px; 15 background-color: blue; 16 } 17 18 #secondchild { 19 display: block; 20 position: absolute; 21 top: 0px; 22 left: 0px; 23 width: 100%; 24 height: 100%; 25 opacity: 0; 26 } 27 </style> 28 </head> 29 <body> 30 <div id="parent"> 31 <div id="firstchild"></div> 32 <div id="secondchild"></div> 33 </div> 34 35 <pre id="test"> 36 <script type="application/javascript"> 37 38 /** Test for Bug 1278021 */ 39 40 is(document.elementFromPoint(50,50), document.getElementById("secondchild"), "Able to hit transformed object"); 41 42 </script> 43 </pre> 44 </body> 45 </html>