summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/detached-line.html
blob: a6a7520c0d1ef4e90d4e7edb8aaaf9257e4bb23d (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
<!DOCTYPE html>
<style>
div:before { position: absolute; content: 'x';  }
</style>
<!--
<img usemap="#map1">
  <map>
    <caption>
      <map name=child-map>
        yz
      </map>
    </caption>
  </map>
-->
<script>
window.addEventListener('load', () => {
  const caption = document.createElement('caption');
  const childMap = document.createElement('map');
  childMap.setAttribute('name', 'child-map');
  const map2 = document.createElement('map');
  document.documentElement.appendChild(map2);
  const img = document.createElement('img');
  img.setAttribute('usemap', '#child-map');
  childMap.appendChild(document.createTextNode('yz'));
  document.documentElement.appendChild(img);
  caption.appendChild(childMap);
  map2.appendChild(caption);
});
</script>