3 #t { width:
600px; height:
400px; }
4 #t::first-line { background-color: red; }
5 #t:hover::first-line { background-color: green; }
9 <p>This text should have a green background when hovered.
</p>
13 document
.body
.offsetTop
; // Force layout. The mouse is not tracked before first layout.
15 if (window
.eventSender
)
16 eventSender
.mouseMoveTo(100, 100); // Hover.
18 document
.body
.offsetTop
; // Update layout for the hovered state.