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

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

Issue 858863002: Added test for issue 450002. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/css/getComputedStyle/getComputedStyle-first-letter-first-line-hover-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/getComputedStyle/getComputedStyle-first-letter-first-line-hover.html
diff --git a/LayoutTests/fast/css/getComputedStyle/getComputedStyle-first-letter-first-line-hover.html b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-first-letter-first-line-hover.html
new file mode 100644
index 0000000000000000000000000000000000000000..f3c245ef872ac23bb682edfe5bedc89efe385d69
--- /dev/null
+++ b/LayoutTests/fast/css/getComputedStyle/getComputedStyle-first-letter-first-line-hover.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+#p { color: red }
+#p::first-line { color: green }
+#p::first-letter { background-color: lime; }
+#p:hover { text-transform: lowercase }
+</style>
+<p id="p">Hover me.</p>
+<script>
+var green = "rgb(0, 128, 0)";
+shouldBe("getComputedStyle(p, '::first-letter').color", "green");
+
+if (eventSender)
+ eventSender.mouseMoveTo(p.offsetLeft+1, p.offsetTop+1);
+
+shouldBe("getComputedStyle(p, '::first-letter').color", "green");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/getComputedStyle/getComputedStyle-first-letter-first-line-hover-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698