blob: ddf12c561cb79fa722de67bd766a43aef64912d7 (
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
34
|
<!DOCTYPE html>
<html>
<head>
<style>
a {
position: absolute;
display: block;
outline: thin dotted green;
outline-width: 0px;
}
a.updated {
outline-width: 5px;
clip: rect(0px, 100px, 100px, 0px);
}
</style>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
document.getElementById("link").classList.add("updated");
}
window.addEventListener("load", runRepaintTest, false);
</script>
</head>
<body>
<p>This test checks that an outline change is correctly repainted.</p>
<p>There should be a 5px green outline below.</p>
<ul>
<li><a id="link">Lorem Ipsum</a></li>
</ul>
</body>
</html>
|