[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
Mon Sep 21 15:21:51 PDT 2009


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


Xiaomei Ji <xji at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aharon at google.com,
                   |                            |jcampan at google.com,
                   |                            |xji at chromium.org




--- Comment #2 from Xiaomei Ji <xji at chromium.org>  2009-09-21 15:21:51 PDT ---
Hi Aharon,

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:
1. for autofill, the directionality of the drop-down item is the same as the
<input> field. 
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).

This issue is about another bug in Chrome that the drop-down is always
left-aligned, even for a RTL element. 

The alignment is easy for autofill, in which, items displayed in <input> field
and in drop-down are consistent, and they can be displayed as right-aligned
when the element is in dir=rtl.

But I need to check with you on the expected behavior of <select>/<option>.

Given the following example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Untitled Page</title>
</head>
<body dir="rtl">
<select>
<option>abc def</option>
<option>שנב גקכ</option>
<option dir="rtl">abc שנב def</option>
<option dir="ltr">שנב abc גקכ</option>
</select>
</body>
</html>

While the 1st and 3rd items in drop-down are displayed as LTR, and 2nd and 4th
items are displayed as RTL using heuristics, what should be their alignment?
should they all be displayed as right-aligned, including the 4th item? Or ....
What are the rule and the rational behind the rule?

Thanks,
xiaomei

-- 
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