summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/aria-owns-owner-becomes-aria-hidden.html
blob: e80bc8a426d154c091fa50b8eb017897eff3f999 (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
26
27
<!DOCTYPE html>
<html class="test-wait">
<script>
document.addEventListener("DOMContentLoaded", () => {
  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      document.querySelector('div').ariaHidden = true;
      requestAnimationFrame(() => {
        requestAnimationFrame(() => {
          document.documentElement.className = '';
        });
      });
    });
  });
});
</script>
<main>
  <div role="complementary">
    <fieldset aria-owns="owned"></fieldset>
  </div>
</main>
<footer id="owned">
  <mark>
    owned
  </mark>
</footer>
</html>