Index: LayoutTests/fast/history/visited-link-hover-emphasis-color.html |
diff --git a/LayoutTests/fast/history/visited-link-hover-emphasis-color.html b/LayoutTests/fast/history/visited-link-hover-emphasis-color.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5cc0e5ab5ee6f760b1293a6fa9918503b9a1fdec |
--- /dev/null |
+++ b/LayoutTests/fast/history/visited-link-hover-emphasis-color.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<script> |
+if (window.testRunner) { |
+ testRunner.keepWebHistory(); |
+ testRunner.waitUntilDone(); |
+} |
+</script> |
+<style> |
+a { -webkit-text-emphasis-style: filled } |
+div { -webkit-text-emphasis-color: red; } |
+a:visited { -webkit-text-emphasis-color: inherit } |
+a, a:hover { -webkit-text-emphasis-color: green; color: initial; text-decoration: none } |
+</style> |
+<div> |
+ <a id="anchor" href="">Emphasis should be green when hovered</a> |
+</div> |
+<script> |
+if (window.testRunner) { |
+ testRunner.displayAsyncThen(function(){ |
+ if (window.eventSender); |
+ eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1); |
+ window.testRunner.notifyDone(); |
+ }); |
+} |
+</script> |