blob: e539a82093f8d0a9ee779dc712d38d81f4021177 (
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
|
<!DOCTYPE html>
<html class="reftest-wait">
<style>
.container {
visibility: visible;
transition: visibility .2s;
}
.hidden {
visibility: hidden;
}
</style>
<div id="tooltip" class="container hidden">
<div>
<div>
<strong>Text</strong>
</div>
</div>
</div>
<script>
window.addEventListener("load", () => {
requestIdleCallback(() => {
tooltip.classList.remove("hidden");
requestAnimationFrame(() => {
requestAnimationFrame(() => {
tooltip.style.zIndex = 2;
document.documentElement.classList.remove("reftest-wait");
});
});
});
});
</script>
|