summaryrefslogtreecommitdiffstats
path: root/editor/reftests/caret-rtl-text-in-ltr-input.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--editor/reftests/caret-rtl-text-in-ltr-input.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/editor/reftests/caret-rtl-text-in-ltr-input.html b/editor/reftests/caret-rtl-text-in-ltr-input.html
new file mode 100644
index 0000000000..b296f1f22c
--- /dev/null
+++ b/editor/reftests/caret-rtl-text-in-ltr-input.html
@@ -0,0 +1,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>