Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <meta charset="UTF-8"> | |
| 5 <style> | |
| 6 .editing { | |
| 7 border: 2px solid red; | |
| 8 padding: 12px; | |
| 9 font-size: 24px; | |
| 10 width: 400px; | |
| 11 direction: rtl; | |
| 12 unicode-bidi: -webkit-isolate; | |
| 13 } | |
| 14 </style> | |
| 15 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script > | |
| 16 | |
| 17 <script> | |
| 18 | |
| 19 function editingTest() { | |
| 20 moveSelectionForwardByLineCommand(); | |
| 21 moveSelectionLeftByCharacterCommand(); | |
| 22 } | |
| 23 | |
| 24 </script> | |
| 25 | |
| 26 <title>Caret RTL Direction Test</title> | |
| 27 </head> | |
| 28 <body> | |
| 29 <p>Tests display caret direction (RTL) as per Input. | |
| 30 </p> | |
| 31 <div contenteditable id="root" class="editing"> | |
| 32 <span id="test">Caret in RTL Language نلا</span> | |
| 33 </div> | |
| 34 | |
| 35 <script> | |
| 36 runEditingTest(); | |
| 37 </script> | |
| 38 | |
| 39 </body> | |
| 40 </html> | |
| 41 | |
| 42 | |
| OLD | NEW |