Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / editor / libeditor / crashtests / 1317704.html
blob2f6d2820c32347103f09046c48a6c49690a56101
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script>
6 addEventListener('DOMContentLoaded', () => {
7 // For emulating the traditional behavior, collapse Selection to end of the
8 // text node at end of the <body>.
9 getSelection().collapse(
10 document.body.lastChild,
11 document.body.lastChild.length
13 document.documentElement.className = 'lizard';
14 setTimeout(() => {
15 document.execCommand('selectAll');
16 document.designMode = 'on';
17 document.execCommand('removeformat');
18 }, 0);
19 });
20 </script>
21 <style>
22 .lizard {
23 -webkit-user-select: all;
25 * {
26 position: fixed;
27 display: table-column;
29 </style>
30 </head>
31 <body>
32 <span>
33 <span contenteditable>
34 <span class=lizard></span>
35 <span class=lizard></span>
36 <span />
37 </span>
38 </span>
39 </span>
40 </span>
41 </body>
42 </html>