Caret rendered at incorrect location inside empty table cell
[WebKit-https.git] / LayoutTests / editing / rtl-to-ltr-editing-word-move-spin.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This test that we can jump word by word over rtl-ltr content.</title>
5 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
6 </head>
7 <body contenteditable="true";>
8 Pass if no hang.
9 <div style="direction: rtl;">&#x202B foobar foobar&#x202B</div></br>
10 <script>
11     if (window.testRunner)
12         testRunner.dumpAsText();
13     getSelection().setPosition(document.querySelector('div').firstChild, 2);
14     getSelection().modify('move', 'right', 'word');
15     getSelection().modify('move', 'right', 'word');
16 </script>
17 </body>
18 </html>