no bug - Import translations from android-l10n r=release a=l10n CLOSED TREE
[gecko.git] / layout / base / tests / bug1506547-5.html
blobf06e72fbe2d4e240f756f0141faa0cd6d0f69ec8
1 <!doctype html>
2 <html class="reftest-wait">
3 <title>Caret on editable line with non-editable content and whitespace.</title>
4 <script src="/tests/SimpleTest/EventUtils.js"></script>
5 <script src="/tests/SimpleTest/SimpleTest.js"></script>
6 <style>
7 * { outline: none }
9 div {
10 border: 1px solid red;
11 margin: 5px;
12 padding: 2px;
14 </style>
15 <div contenteditable="true"><span contenteditable="false">xyz </span><br>editable</div>
16 <script>
17 SimpleTest.waitForFocus(function() {
18 const editable = document.querySelector('div[contenteditable="true"]');
19 editable.focus();
20 synthesizeMouse(editable, 100, 10, {});
21 setTimeout(() => {
22 sendString("xxx");
23 setTimeout(() => document.documentElement.className = "");
24 });
25 });
26 </script>
27 </html>