rniwa@webkit.org | 2798e02 | 2010-12-08 21:55:54 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <body> |
| 4 | <p> |
| 5 | This tests that clicking in a contenteditable div will set the caret in the right position for RTL text in a RTL block. |
| 6 | To test manually, click the right of the text. The caret should be on the right edge. |
| 7 | </p> |
| 8 | <div style="direction: rtl; font-size: 20px; width: 20ex; border: solid thin black; padding: 10px;" contenteditable>שדה בור</div> |
| 9 | <script src="resources/caret-edge-shared.js"></script> |
| 10 | <script> |
| 11 | |
| 12 | var clickOn = 'right'; |
| 13 | var expectedOffset = 0; |
| 14 | |
| 15 | runTest(); |
| 16 | |
| 17 | </script> |
| 18 | </body> |
| 19 | </html> |