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)

defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 1169986

People

(Reporter: chutten, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: intl, rtl)

Attachments

(1 file)

Attached file Simple testcase
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.
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.
(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.

Attachment

General

Created:
Updated:
Size: