summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/focus-layers.html
blob: 045a3da510aa53e7aefa084c71ff3eaa13018e42 (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
25
26
27
28
29
30
31
32
33
<html>
<head>
<style type="text/css">
a {
    border: 2px solid red;
    position: relative;
}
a span.relative {
    border: 2px solid blue;
    white-space: nowrap;
    position: relative;
    top: 10em;
}
a span.absolute {
    border: 2px solid green;
    white-space: nowrap;
    position: absolute;
    top: 12em;
}
</style>

</head>
<body>
<div>

Both <a href="#" id="link">this and <span class="relative">this should have correctly placed focus rings</span> <span class = "absolute">but not this</span>.</a>
</div>

<script>
document.getElementById('link').focus();
</script>
</body>
</html>