summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/aria-owns-overlapping.html
blob: e98ad6fb76ee8a140948955b5292d389d3596ed4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>