summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/delete-at-text-following-svg.html
blob: cc2040a2a346fbaec41138affd05bc8451bddfe7 (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
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
mask, li {
  float: inline-start;
  animation-name: kf0;
}
@keyframes kf0 {}
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
  window.focus();
  document.designMode = "on";
  document.onpointerlockerror = onPointerLockErrorOrAnimationStart;
  const mask = document.querySelector("mask");
  mask.requestPointerLock();
  mask.prepend(document.querySelector("table"));
});
function onPointerLockErrorOrAnimationStart() {
  document.execCommand("underline");
  document.execCommand("delete");
  onanimationstart  = onPointerLockErrorOrAnimationStart;
  try {
    getSelection().setBaseAndExtent(
      document.querySelector("li"), 0,
      document.querySelector("thead"), 0
    );
  } catch (e) {}
}
</script>
<body><svg>
<mask>
<clipPath>
</clipPath></mask></svg><sup>
AA
<li>
<br></li></sup><table>
<thead>
</thead></table>