Index: LayoutTests/fast/css/first-letter-hover-002.html |
diff --git a/LayoutTests/fast/css/first-letter-hover-002.html b/LayoutTests/fast/css/first-letter-hover-002.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..282f173beb97a3d39af8c1a636e4f1d9ea189215 |
--- /dev/null |
+++ b/LayoutTests/fast/css/first-letter-hover-002.html |
@@ -0,0 +1,20 @@ |
+<!DOCTYPE html> |
+<style> |
+ #t { width: 400px; height: 400px; } |
+ #t::first-letter { background-color: red; } |
+ #t:hover::first-letter { background-color: green; } |
+</style> |
+<div id="t"> |
+ <div> |
+ <p>X</p> |
+ <p>The X above should have a green background when hovered.</p> |
+ </div> |
+</div> |
+<script> |
+document.body.offsetTop; // Force layout. The mouse is not tracked before first layout. |
+ |
+if (window.eventSender) |
+ eventSender.mouseMoveTo(100, 100); // Hover. |
+ |
+document.body.offsetTop; // Update layout for the hovered state. |
+</script> |