-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Expand file tree
/
Copy pathoutline-dynamic.html
More file actions
36 lines (33 loc) · 891 Bytes
/
outline-dynamic.html
File metadata and controls
36 lines (33 loc) · 891 Bytes
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
35
36
<!DOCTYPE html>
<html class="reftest-wait">
<title>CSS Test: outline - dynamic changes</title>
<link rel="author" title="Oriol Brufau" href="obrufau@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#outline" />
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<meta name="assert" content="Checks that outline can be changed dynamically.">
<style>
div {
position: absolute;
}
#red {
background: red;
}
#target {
margin: 50px;
}
#target.outline {
outline: solid 50px green;
}
</style>
<p>Test passes if there is a filled green square.</p>
<div id="red"></div>
<div id="target"></div>
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<script>
waitForAtLeastOneFrame().then(() => {
document.getElementById("target").className = "outline";
takeScreenshot();
});
</script>
</html>