2 <script src=
"../../resources/js-test.js"></script>
4 :hover::before, :hover::after { background-color: green }
5 #t1::before { content:
"Green background when hovered" }
6 #t2::after { content:
"Green background when hovered" }
11 description("Quirks mode - universal :hover on pseudo elements");
13 function moveTo(element
) {
14 eventSender
.mouseMoveTo(element
.offsetLeft
+ 1, element
.offsetTop
+ 1);
17 var transparent
= "rgba(0, 0, 0, 0)";
18 var green
= "rgb(0, 128, 0)";
20 shouldBeDefined("window.eventSender");
22 shouldBe("getComputedStyle(t1, '::before').backgroundColor", "transparent");
24 shouldBe("getComputedStyle(t1, '::before').backgroundColor", "green");
26 shouldBe("getComputedStyle(t2, '::after').backgroundColor", "transparent");
28 shouldBe("getComputedStyle(t2, '::after').backgroundColor", "green");