blob: e13bdd2c85f7de31ba6d50cc8c4e90749640a7f6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>
This tests that clicking in a contenteditable div will set the caret in the right position for LTR text in a RTL block.
To test manually, click the left of the text. The caret should be on the left edge.
</p>
<div style="direction: rtl; font-size: 20px; width: 20ex; border: solid thin black; padding: 10px;" contenteditable>WebKit2</div>
<script src="resources/caret-edge-shared.js"></script>
<script>
var clickOn = 'left';
var expectedOffset = 7;
runTest();
</script>
</body>
</html>