blob: c490f2ccab75127c5cde3951c14a10212681b28d [file] [log] [blame]
<!DOCTYPE html>
<meta charset='utf-8'>
<style>
div {
width: 125px;
height: 20px;
font: 12px;
overflow: hidden;
white-space: pre;
text-overflow: ellipsis;
direction: ltr;
}
</style>
<p>crbug.com/636060: rtl text in a ltr flow should truncate the text left-to-right and underline correctly in composition mode.</p>
<p>You should see an underline beneath the text.</p>
<div id="textarea" contenteditable="true"></div>
<script>
if (window.testRunner) {
var textarea = document.getElementById("textarea");
textarea.focus();
textInputController.setComposition("אבגדהוזחטיכךלמםסעפףצץקרשת<");
}
</script>