summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/accessibility/crashtests/display-table-column.html
blob: 6f34f27fa7efd3e22edc6c76ac9f343487f8b7d6 (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
28
29
30
31
<!DOCTYPE html>
<html class="test-wait">
<head>
<style>
.foo * {
  display: table-column;
}
</style>
<script>
requestAnimationFrame(() => {
  requestAnimationFrame(() => {
    const link = document.querySelector('link');
    // This will queue the creation of an accessibility object for the
    // link, because it will now have layout.
    document.documentElement.className = 'foo';
    // Do something that forces the link's accessibility object to get an
    // additional update.
    link.ariaChecked = 'true';
    requestAnimationFrame(()=> {
      requestAnimationFrame(()=> {
        document.documentElement.className = '';
      });
    });
  });
});
</script>
</head>
<body>
  <link/>
</body>
</html>