summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html')
-rw-r--r--testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html b/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html
new file mode 100644
index 0000000000..13e1eaff6d
--- /dev/null
+++ b/testing/web-platform/tests/accessibility/crashtests/aria-owns-with-role-change.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html class="test-wait">
+<!-- Test that setting the role an an aria-owns element does not crash. -->
+<script>
+document.addEventListener("DOMContentLoaded", () => {
+ requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
+ document.getElementById('owner').role = 'tab';
+ requestAnimationFrame(() => {
+ requestAnimationFrame(() => {
+ document.documentElement.className = '';
+ });
+ });
+ });
+ });
+});
+</script>
+</head>
+<body>
+<main>
+ <fieldset id='owner' aria-owns="paragraph1">
+ <div>
+ <p id="paragraph1">
+ <mark>
+ Child
+ </mark>
+ </p>
+ </div>
+ </fieldset>
+</main>
+
+</body>
+</html>