Summary: | text-align doesn't work on select tags | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Julien <julien> | ||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | akeerthi, ap, aragost, bugzilla, dante3333, determinedc1, doug, ekadesign, heycam, mitz, norsyn, simon.fraser, webkit-bug-importer, zalan | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Mac (Intel) | ||||||
OS: | OS X 10.6 | ||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=133373 | ||||||
Attachments: |
|
Description
Julien
2010-06-06 17:59:11 PDT
Created attachment 57987 [details]
Test case to see if selects are aligned or not
Latest WebKit, Safari and Chrome failed on this but this works on both Firefox and Opera Mac versions. Somewhat surprisingly, I cannot find an exact duplicate for this. There are bug 38780 and bug 19785 though. Yeah I searched a bit and was surprised too... Based on mitz's comment in bug 19785 that "We are not going to center or justify menu items on Mac OS X", should this not be closed as WONTFIX? Any update? This is really painful to be blocked for such things. I believe I found an answer to this. Try CSS code "direction rtl;" on the "select" element. Ditto to driving you crazy. Furthermore, if you want the select text to be to the right but then the options to be on the left you can do something like this: .select:active { direction: ltr; } This will essentially change the css for the select element for when it is active - i.e. when you are making a selection. We cannot change the text alignment of menu items, but we should honor text-align for the in-page control. This would match the behavior of both Chrome and Firefox. Would require changes in `RenderMenuList::adjustInnerStyle`. |