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