summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/history/visited-link-hover.html
blob: 3cc84f01f06c4db3dc8ed7f0393e68bcf2379a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<script>
if (window.testRunner) {
    testRunner.keepWebHistory();
    testRunner.waitUntilDone();
}
</script>
<style>
div { color: red; }
a:visited { color: inherit }
a, a:hover { color: green; text-decoration: none }
</style>
<div>
    <a id="anchor" href="">Should be green when hovered</a>
</div>
<script>
if (window.testRunner) {
    testRunner.layoutAndPaintAsyncThen(function(){
        if (window.eventSender);
            eventSender.mouseMoveTo(anchor.offsetLeft + 1, anchor.offsetTop + 1);
        window.testRunner.notifyDone();
    });
}
</script>