summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/map-inside-map.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/accessibility/crashtests/map-inside-map.html')
-rw-r--r--testing/web-platform/tests/accessibility/crashtests/map-inside-map.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/web-platform/tests/accessibility/crashtests/map-inside-map.html b/testing/web-platform/tests/accessibility/crashtests/map-inside-map.html
new file mode 100644
index 0000000000..4ea41fdb3c
--- /dev/null
+++ b/testing/web-platform/tests/accessibility/crashtests/map-inside-map.html
@@ -0,0 +1,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>