[Webkit-unassigned] [Bug 50928] RTL: Select elements with a size attribute are always left aligned

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 10 06:56:02 PST 2011


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





--- Comment #8 from Ofri Wolfus <ofri at google.com>  2011-02-10 06:56:02 PST ---
Thanks for the useful comments!

Regarding the justify issue, unless I'm mistaking it'll be a lot of work to support it. The drawing code used doesn't appear to have any support for this feature.

Ofri

(In reply to comment #5)
> (From update of attachment 78801 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=78801&action=review
> 
> > Source/WebCore/rendering/RenderListBox.cpp:306
> > +
> 
> Thanks for the patch!
> Seems that renderStyle() returns the <select>'s style even if the style is set in <option>. So, alignment style in <option> is ignored and <option> always aligned according to <select>'s alignment (or implied from direction). 
> Is this expected behavior? and is it defined in standard?
> 
> > Source/WebCore/rendering/RenderListBox.cpp:334
> 
> 
> ETextAlign actualAlignment = itemStyle->textAlign()
> 
> > Source/WebCore/rendering/RenderListBox.cpp:335
> > +    // FIXME: Firefox doesn't respect JUSTIFY. Should we?
> 
> I think we should. then, remove this line?
> 
> > Source/WebCore/rendering/RenderListBox.cpp:349
> > +      r.setWidth(textWidth);
> > +    } else if (actualAlignment == CENTER) {
> 
> else if (actualAlignment == CENTER || actualAlignment == WEBKIT_CENTER)
> 
> > Source/WebCore/rendering/RenderListBox.cpp:352
> > +      r.setWidth(textWidth);
> 
> why need setWidth here (and above)?
> 
> >> Source/WebCore/rendering/RenderListBox.cpp:355
> 
> > 
> > This is something the RTL folks should check.
> 
> Seems <select>/<option> never truncate, so above logic is correct.
> This code is not shared by <input> or other element that truncation could happen, right?

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