3 #t { width:
400px; height:
400px; }
4 #t::first-letter { background-color: red; }
5 #t:hover::first-letter { background-color: green; }
10 <p>The X above should have a green background when hovered.
</p>
14 document
.body
.offsetTop
; // Force layout. The mouse is not tracked before first layout.
16 if (window
.eventSender
)
17 eventSender
.mouseMoveTo(100, 100); // Hover.
19 document
.body
.offsetTop
; // Update layout for the hovered state.