diff options
Diffstat (limited to 'testing/web-platform/tests/accessibility/crashtests/aria-owns-overlapping.html')
-rw-r--r-- | testing/web-platform/tests/accessibility/crashtests/aria-owns-overlapping.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testing/web-platform/tests/accessibility/crashtests/aria-owns-overlapping.html b/testing/web-platform/tests/accessibility/crashtests/aria-owns-overlapping.html new file mode 100644 index 0000000000..e98ad6fb76 --- /dev/null +++ b/testing/web-platform/tests/accessibility/crashtests/aria-owns-overlapping.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<!-- Test that multiple overlapping aria-owns relation do not crash --> + +<html class="test-wait"> +<main id='great-grandparent'> + <fieldset id="grandparent"> + <p id='parent'> + <i id='child'></i> + </p> + </fieldset> +</main> + +<script> +document.addEventListener("DOMContentLoaded", () => { + document.getElementById('child').setAttribute('aria-owns','grandparent'); + document.getElementById('great-grandparent').setAttribute('aria-owns','parent'); + requestAnimationFrame(() => { + requestAnimationFrame(() => { + document.documentElement.style.display="none"; + document.documentElement.className = ''; + }); + }); +}); +</script> +</html> |