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