4 https://bugzilla.mozilla.org/show_bug.cgi?id=119061
7 <title>Test for Bug
119061</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <script src=
"/tests/SimpleTest/EventUtils.js"></script>
10 <script src=
"/tests/SimpleTest/WindowSnapshot.js"></script>
11 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css"/>
13 #target:hover { fill: lime; }
17 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=119061">Mozilla Bug
119061</a>
20 <rect width=
"100%" height=
"100%" fill=
"lime"/>
21 <rect id=
"target" width=
"100" height=
"100" transform=
"translate(-51,-51)" fill=
"lime"/>
24 <div id=
"content" style=
"display: none">
30 SimpleTest
.waitForExplicitFinish();
32 SimpleTest
.waitForFocus(() => {
33 let target
= document
.getElementById("target");
34 let rect
= document
.getElementById("display").getBoundingClientRect();
35 synthesizeMouse(target
, 25, 25, {type
: "mousemove"});
36 let reference
= snapshotRect(window
, rect
);
37 target
.setAttribute("fill", "red");
38 ok(compareSnapshots(snapshotRect(window
, rect
), reference
, false), "target should be visible");
39 synthesizeMouse(target
, 51, 51, {type
: "mousemove"});
40 target
.removeAttribute("transform");
41 ok(compareSnapshots(snapshotRect(window
, rect
), reference
, true), "target should be invisible");