blob: e4d3df8d4810c3d5548d1c0d451e058e69ee947c (
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
35
|
<!DOCTYPE html>
<html class="reftest-wait">
<title></title>
<style>
@keyframes anim {
from { transform: scale(1); }
to { transform: rotate(0deg); }
}
#target {
animation: anim 3s infinite;
background-color: blue;
width: 100px;
height: 100px;
}
</style>
<div>
<div id="target"></div>
<details id="details" open>
<summary>Summary</summary>
<p>detail description</p>
</details>
</div>
<script>
window.addEventListener('load', () => {
requestAnimationFrame(() => {
details.open = false;
SpecialPowers.getDOMWindowUtils(window)
.sendMouseEvent("mousemove", 100, 100, 1,
0, 1, 0);
requestAnimationFrame(() => {
document.documentElement.classList.remove("reftest-wait");
});
});
});
</script>
|