<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.testRunner) {
testRunner.keepWebHistory();
testRunner.waitUntilDone();
}
</script>
<style>
div { -webkit-text-fill-color: red; }
a:visited { -webkit-text-fill-color: inherit }
a, a:hover { -webkit-text-fill-color: green; text-decoration: none }
</style>
<div>
<a id="anchor" href="">Should be green when hovered</a>
</div>
<script>
if (window.testRunner) {
runAfterLayoutAndPaint(function(){
if (window.eventSender);
eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1);
testRunner.notifyDone();
});
}
</script>