summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/caret-display-list.html
blob: f7c7a740e18925dba2da8704700ee23a5359921f (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
<html class="test-wait reftest-wait">
<style>
* {
  backdrop-filter: hue-rotate(0deg);
  offset: path('M 72 1 h 0 v 90') 0px 0rad;
  mask-image: url(#x)
}
</style>
<script>
let stop = false;
function func_01() {
  document.execCommand("justifyCenter", false)
  document.getSelection().collapse(a)
  requestAnimationFrame(() => requestAnimationFrame(() => {
    if (stop) {
      document.documentElement.classList = "";
      return;
    }
    // Ensure that we've painted at least twice.
    stop = true;
    func_01();
  }));
}
document.addEventListener("DOMContentLoaded", func_01)
</script>
<meter id="a" contenteditable="true">AA</meter>