blob: 142031686be1d2572f65ad0d4e30a1f6b2fd0a7e [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.testRunner)
testRunner.keepWebHistory();
</script>
<style>
a { background-color: red; text-decoration: none; color: initial }
a:hover:visited { background-color: green }
</style>
<a id="anchor" href="">Should have a green background when hovered</a>
<script>
runAfterLayoutAndPaint(function(){
if (window.eventSender);
eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1);
}, true);
</script>