summaryrefslogtreecommitdiffstats
path: root/editor/reftests/caret-rtl-text-in-ltr-input.html
blob: b296f1f22c37e49c1b7e4fea22f6f4bcc161f958 (plain)
1
2
3
4
5
6
7
8
9
10
<!doctype html>
<meta charset="utf-8">
<input type=text value="الخير" autofocus>
<script>
onload = () => {
  let input = document.querySelector("input");
  input.selectionStart = input.selectionEnd = input.value.length;
  input.focus();
}
</script>