1 <!-- Based on fast/repaint/hover-pseudo-borders.html -->
22 background-color: green; /* Changes the left box's color. */
24 .hitregion:hover:after {
25 color: green; /* Changes the right box's color. */
28 <script src=
"resources/paint-invalidation-test.js"></script>
30 window
.expectedPaintInvalidationObjects
= [
31 "LayoutBlockFlow DIV class='hitregion'",
32 "LayoutBlockFlow (positioned) \u003Cpseudo:after\u003E",
33 "LayoutTextFragment (anonymous)",
35 function paintInvalidationTest() {
36 if (!window
.testRunner
)
38 eventSender
.mouseMoveTo(50, 50);
39 eventSender
.mouseDown();
40 eventSender
.mouseUp();
42 window
.addEventListener("load", runPaintInvalidationTest
);
47 REGRESSION: :hover doesn't work on :after content with borders or outlines.
48 To test this bug outside DRT, hover on the square below.
49 This test passes if there are two green squares.
51 <div class=
"hitregion"></div>