[Webkit-unassigned] [Bug 29612] [Chromium] the drop-down is always left-aligned even for RTL element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 22 06:17:34 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=29612





--- Comment #5 from Aharon (Vladimir) Lanin <aharon at google.com>  2009-09-22 06:17:33 PDT ---
(In reply to comment #2)
> We had some disussion of the drop-down items' directionality in autofill and
> <select> in https://bugs.webkit.org/show_bug.cgi?id=27889.
> 
> And the conclusion/current status of Chromium are:
> [...]
> 2. for <select> (looks like all browsers do not honor the dir in <options>),
> the directionality of the drop-down item is determined using heuristics -- the
> directionality of the first strong directional character.
> But the directionality of the selected item is displayed using <select>'s
> directionalty.
> So, currently, Chrome might display in-consistently for the same item in drop
> down and in select box.
> See https://bugs.webkit.org/attachment.cgi?id=14607&action=view for example
> (select the 2nd item, and you will see the inconsistency).

The url does not work for me.

As I said in https://bugs.webkit.org/show_bug.cgi?id=27889, the behavior I like
for <select> is that the directionality be estimated for each option
separately, with each option displayed in its own directionality both in the
drop-down and when chosen. The select's directionality should only affect the
position of the arrow button (and possibly the alignment of the items, in both
the dropdown and the select, which is the real issue at hand). This way, there
is no inconsistency between what the user sees in the dropdown and the chosen
item. I do not like Chrome's current behavior for <select>, where the item's
directionality is ignored when displaying it after it is chosen.

> This issue is about another bug in Chrome that the drop-down is always
> left-aligned, even for a RTL element. 
> [...]
> What are the rule and the rational behind the rule?

Setting alignment for each option individually has the potential advantage of
greater readability, since text is usually more readable in its natural
alignment. But it has the disadvantage of a potentially "jagged" display, with
items appearing far away from where the user expects to see them, especially
for a wide select. Furthermore, there is potential for inconsistency in
alignment between an option as it appears in the dropdown and as it is appears
in the select when chosen.

I am attaching mock-ups for the two possibilities.

There are different opinions on which way to go here. In my opinion, the
jaggedness is just too much, and it is better to keep uniform alignment
according to the select's dir, both in the dropdown and for the chosen item in
the select.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list