Open Bug 1341909 Opened 7 years ago Updated 2 years ago

Autocomplete popups needs to handle dir="auto" case


(Toolkit :: Autocomplete, defect, P3)




Tracking Status
firefox54 --- affected


(Reporter: mconley, Unassigned)


(Blocks 2 open bugs)



(1 file)

Our autocomplete popups set their direction according to the text input that they're associated with. HTML5 added "auto", which dynamically sets direction depending on the first character in the string.

Our autocomplete popups don't support auto, I don't think - like, they'll point LTR or RTL for the suggestions, but if the dir="auto", they're not going to be able to show both directions in the popup for each suggestion.
Attached image Expected effect
Hrm. Slight problem here. It looks like, from some initial pokings, that <xul:description> (which is what is displaying the label inside the autocomplete popup) doesn't support dir="auto". Reading bug 548206, it's possible that dir="auto" is not a thing that can currently be represented with XUL.

Does that sound accurate, Neil?
Flags: needinfo?(enndeakin)
Priority: -- → P3
The dir attribute in xul refers to the flexible box direction, not the text direction.

I don't know anything about dir="auto", but it looks like auto-dir handling is done via a flag in nsINode. (a set of flags such as NodeHasDirAutoSet), so it might work to just set the right flags as needed.
Flags: needinfo?(enndeakin)
Blocks: 1582489
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.