summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/editing/crashtests/delete-from-ruby-at-start-of-button.html
blob: 0159e5281594b6736b5bacae4d9f4f0d3e35c53c (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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
*:last-child {
  white-space: pre-wrap;
}
</style>
<script>
addEventListener("DOMContentLoaded", () => {
  getSelection().collapse(document.querySelector("ruby"));
  document.designMode = "on";
  document.execCommand("delete");
});
</script>
</head>
<body>
<label contenteditable="true"></label>
<bdi style="white-space: nowrap">
<button>
<kbd>
<ruby>
</ruby>
</kbd>
</button>
</bdi>
</body>
</html>