summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/map-inside-map.html
blob: 4ea41fdb3cf5690df299204565703a62e90c50f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
  <script>
    const imgOutsideMap = document.createElement('img');
    imgOutsideMap.className="img-outside-map";
    imgOutsideMap.setAttribute('usemap', '#map2');
    document.documentElement.appendChild(imgOutsideMap);
    const map = document.createElement('map');
    map.setAttribute('name', 'map2');
    document.documentElement.appendChild(map);
    const imgInsideMap = document.createElement('img');
    imgInsideMap.className="img-inside-map";
    imgInsideMap.setAttribute('usemap', '#map2');
    imgInsideMap.style.visibility = 'collapse';
    map.appendChild(imgInsideMap);
  </script>
</html>