Closed
Bug 1217107
Opened 9 years ago
Closed 9 years ago
Directionality of empty html input with dir=auto should be taken from placeholder text if present
Categories
(Core :: Layout: Text and Fonts, defect)
Core
Layout: Text and Fonts
Tracking
()
RESOLVED
DUPLICATE
of bug 1169986
People
(Reporter: chutten, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: intl, rtl)
Attachments
(1 file)
171 bytes,
text/html
|
Details |
The test case is a simple html input with dir="auto" and a placeholder with RTL script. The placeholder should be aligned to the right but is aligned to the left.
I believe a simple fix to HTMLInputElement::SetDirectionIfAuto would take care of this.
Reporter | ||
Comment 1•9 years ago
|
||
Hm. It also exhibits the problem with textarea, but HTMLTextAreaElement doesn't seem to have much in the way of directionality code like HTMLInputElement does. Maybe there's a central location to make this change.
Comment 2•9 years ago
|
||
(In reply to Chris H-C :chutten from comment #0)
> I believe a simple fix to HTMLInputElement::SetDirectionIfAuto would take
> care of this.
Yes: see attachment 8634016 [details] [diff] [review] in bug 1169986. As you say, textarea will be harder to fix.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•