2 <script src=
"../../resources/js-test.js"></script>
6 :hover[a3] { background-color: green }
8 <div id=
"t1">Green background when hovered
</div>
9 <div id=
"t2" class=
"c2">Green background when hovered
</div>
10 <div id=
"t3" a3
>Green background when hovered
</div>
12 description("Quirks mode - simple selectors right of :hover");
14 function moveTo(element
) {
15 eventSender
.mouseMoveTo(element
.offsetLeft
+ 1, element
.offsetTop
+ 1);
18 var transparent
= "rgba(0, 0, 0, 0)";
19 var green
= "rgb(0, 128, 0)";
21 shouldBeDefined("window.eventSender");
23 shouldBe("getComputedStyle(t1).backgroundColor", "transparent");
25 shouldBe("getComputedStyle(t1).backgroundColor", "green");
27 shouldBe("getComputedStyle(t2).backgroundColor", "transparent");
29 shouldBe("getComputedStyle(t2).backgroundColor", "green");
31 shouldBe("getComputedStyle(t3).backgroundColor", "transparent");
33 shouldBe("getComputedStyle(t3).backgroundColor", "green");