Bug 1890277: part 2) Add `require-trusted-types-for` directive to CSP parser, guarded...
[gecko.git] / editor / reftests / inline-table-editor-position-after-updating-table-size-from-input-event-listener-ref.html
blobd8fa8861aa5b0bff147f78ab4eb5a3c3b81199fc
1 <!doctype html>
2 <html lang="en-US" class="reftest-wait">
3 <head>
4 <meta charset="utf-8">
5 <title>Inline table editor should be positioned correctly even if modified the table from an input event listener</title>
6 <script>
7 addEventListener("load", async () => {
8 const cell = document.querySelector("td + td");
9 document.body.focus();
10 getSelection().collapse(cell, 0);
11 document.execCommand("enableObjectResizing", false, "true");
12 document.execCommand("enableInlineTableEditing", false, "true");
13 requestAnimationFrame(
14 () => requestAnimationFrame(
15 () => document.documentElement.removeAttribute("class")
18 }, {once: true});
19 </script>
20 </head>
21 <body contenteditable="">
22 <table border="1">
23 <td>Cell</td><td style="width:100px"><br></td>
24 </table>
25 </body>
26 </html>