Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: LayoutTests/fast/css/first-line-hover-001.html

Issue 169643002: SubtreeStyleChange for :hover/:active/:focus with ::first-letter. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Check for :hover/:active/:focus instead. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/css/first-line-hover-001.html
diff --git a/LayoutTests/fast/css/first-line-hover-001.html b/LayoutTests/fast/css/first-line-hover-001.html
new file mode 100644
index 0000000000000000000000000000000000000000..5e7c9097b854f9a26815009eab665844bd186299
--- /dev/null
+++ b/LayoutTests/fast/css/first-line-hover-001.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<style>
+ #t { width: 600px; height: 400px; }
+ #t::first-line { background-color: red; }
+ #t:hover::first-line { background-color: green; }
+</style>
+<div id="t">
+ <div>
+ <p>This text 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>
« no previous file with comments | « LayoutTests/fast/css/first-letter-hover-002-expected.html ('k') | LayoutTests/fast/css/first-line-hover-001-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698