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

Unified Diff: LayoutTests/fast/history/visited-link-hover-border-color.html

Issue 915213002: :visited invalidation for background/border/outline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/history/visited-link-hover-border-color.html
diff --git a/LayoutTests/fast/history/visited-link-hover-border-color.html b/LayoutTests/fast/history/visited-link-hover-border-color.html
new file mode 100644
index 0000000000000000000000000000000000000000..ec2c205b4d01883d827ca733950b914cb6b9178d
--- /dev/null
+++ b/LayoutTests/fast/history/visited-link-hover-border-color.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner) {
+ testRunner.keepWebHistory();
+ testRunner.waitUntilDone();
+}
+</script>
+<style>
+a { border: solid red 10px; text-decoration: none; color: initial }
+a:hover:visited { border-color: green; }
+</style>
+<a id="anchor" href="">Should have a green border when hovered</a>
+<script>
+if (window.testRunner) {
+ testRunner.displayAsyncThen(function(){
+ if (window.eventSender);
+ eventSender.mouseMoveTo(anchor.offsetLeft + 10, anchor.offsetTop + 10);
+ window.testRunner.notifyDone();
+ });
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698