blob: 42ebb8814f55210438c4d6029dcf56d21bf8107c (
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="test-wait">
<style>
.c0 { visibility: collapse; }
.c4 { content: "x"; }
</style>
<div class="c0"><img usemap="#map2"></div>
<table>
<thead class="c4">x</thead>
</table>
<map name="map2">x</map>
<script>
const img = document.createElement('img');
img.setAttribute('src', 'xyz.png');
img.setAttribute('usemap', '#map2');
const div = document.querySelector('div');
document.documentElement.appendChild(div);
requestAnimationFrame(() => {
requestAnimationFrame(() => {
const thead = document.querySelector('thead');
thead.appendChild(img);
div.className = '';
document.documentElement.className = '';
});
});
</script>
</html>
|