test_preserve3d_sorting_hit_testing2.html (908B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1241394 5 --> 6 <head> 7 <title>Test for Bug 1241394</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 10 </head> 11 <body onload="run()"> 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1241394">Mozilla Bug 1241394</a> 13 <pre id="test"> 14 <script type="application/javascript"> 15 16 /** Test for Bug 1241394 */ 17 18 SimpleTest.waitForExplicitFinish(); 19 20 function run() { 21 var win; 22 23 window.child_opened = function(doc) { 24 var container= doc.getElementById("container"); 25 26 isnot(doc.elementFromPoint(60, 50).id, container.id, 27 "point (50, 50): should not hit background"); 28 29 win.close(); 30 SimpleTest.finish(); 31 } 32 33 win = window.open("preserve3d_sorting_hit_testing2_iframe.html"); 34 } 35 36 37 </script> 38 </pre> 39 </body> 40 </html>