4 https://bugzilla.mozilla.org/show_bug.cgi?id=684759
7 <title>Test for Bug
684759</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=1226904">Mozilla Bug
1226904</a>
13 <iframe src=
"bug1226904.html" id=
"iframe" height=
"1000" width=
"1000" style=
"border:none"></iframe>
15 <script type=
"application/javascript">
17 /** Test for Bug
1226904 **/
19 SimpleTest.waitForExplicitFinish();
22 var iframe = document.getElementById(
"iframe");
23 var doc = iframe.contentDocument;
24 var container = doc.getElementById(
"container");
25 var separator = doc.getElementById(
"separator");
26 var transformed = doc.getElementById(
"transformed");
28 function check(x, y, expected_element, description)
30 is(doc.elementFromPoint(x, y), expected_element,
31 "point (" + x +
", " + y +
"): " + description);
34 check(
600,
200, separator,
"Separator object should be at right side");
35 check(
900,
200, container,
"Check bounds of separator object");
36 check(
200,
600, transformed,
"Transformed object should be at left side");