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