Caret position inside empty editable element (input, textarea, contenteditable) with dir=auto doesn't respect parent's directionality
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
People
(Reporter: azasypkin, Unassigned, NeedInfo)
References
Details
(Keywords: rtl)
Attachments
(2 files, 1 obsolete file)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
text/html
|
Details |
Reporter | ||
Comment 1•10 years ago
|
||
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Reporter | ||
Comment 4•10 years ago
|
||
Comment 5•10 years ago
|
||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
Comment 8•10 years ago
|
||
Updated•10 years ago
|
Comment 9•10 years ago
|
||
Comment 10•9 years ago
|
||
Updated•9 years ago
|
Comment 12•9 years ago
|
||
Comment 14•6 years ago
|
||
This is still an issue, at least in Firefox 65.0b9 Developer Edition.
Here is a minimal test case:
<html dir="rtl" lang="fa">
<body>
<label dir="rtl">نام
<input type="text" placeholder="نام" dir="auto">
</label>
</body>
</html>
See here: https://codepen.io/anon/pen/RvgwYJ
This behavior is especially frustrating when there is a placeholder in an RTL language. The placeholder will then be left aligned when the input box is empty, and will be further mangled if contains weak or neutral characters like ()!?
Until this is fixed, we'll have to continue using JavaScript to set the dir attribute on input.
Comment 15•2 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Comment 16•2 years ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:jfkthame, since the bug has recent activity, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•2 years ago
|
Description
•