option text in select element with min-height is top aligned instead of centered
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox125 | --- | verified |
People
(Reporter: karlcow, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webcompat], [wptsync upstream])
Attachments
(4 files, 3 obsolete files)
| Reporter | ||
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
Comment 3•8 years ago
|
||
| Reporter | ||
Comment 4•8 years ago
|
||
| Reporter | ||
Updated•8 years ago
|
| Reporter | ||
Updated•7 years ago
|
Comment 5•6 years ago
|
||
Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.
Comment 6•6 years ago
|
||
See bug 1547409. Migrating whiteboard priority tags to program flags.
Updated•6 years ago
|
Comment 8•6 years ago
|
||
This is also hitting select boxes at https://m.gsmarena.com, as per bug 1587082 (closed as dupe).
Updated•3 years ago
|
Comment 9•3 years ago
|
||
Just ran into this with Itiel when looking at a select in some Firefox frontend code, which happened to be deriving its height from min-height and had its contents misaligned as a result of this bug.
Here's a reduced testcase that I came up with while investigating.
ACTUAL RESULTS:
The first "Select" text is top-aligned within the select dropdown-button.
EXPECTED RESULTS:
That text should be vertically centered within its button, like all the other text.
Updated•3 years ago
|
Updated•3 years ago
|
| Assignee | ||
Comment 11•2 years ago
|
||
Do a more special reflow, much like buttons etc do, in order to perform
vertical centering etc.
| Assignee | ||
Comment 12•2 years ago
|
||
Do a more special reflow, much like buttons etc do, in order to perform
vertical centering etc.
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 14•2 years ago
|
||
(In reply to Itiel from comment #13)
emilio, please see the question in the patch :-)
Yup yup, sorry for the lag. There are multiple possible approaches to this bug :)
| Assignee | ||
Comment 15•2 years ago
|
||
| Assignee | ||
Comment 16•2 years ago
|
||
This simplifies our combobox code a bit more:
- Reflow() is only needed to compute the label isize.
- Frame construction uses a setup more similar to <input type=file> to
get the right frame tree, removing a bunch of special code. - Lots of special code removed all over the place.
| Assignee | ||
Comment 17•2 years ago
|
||
I think comment 16 is an even better approach.
Updated•2 years ago
|
Comment 18•2 years ago
|
||
Comment 20•2 years ago
|
||
Comment 21•2 years ago
|
||
Comment 22•2 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a75137d48b99
https://hg.mozilla.org/mozilla-central/rev/2f259801220c
https://hg.mozilla.org/mozilla-central/rev/0deeb41b2f01
Updated•2 years ago
|
Updated•2 years ago
|
Updated•1 year ago
|
Comment 24•1 year ago
|
||
I've replicated this issue using Nightly 125.0a1 (2024-02-28) on Windows 10 x64 with the provided test cases.
Verified as fixed in the latest Firefox 125.0b4 version on Windows 10 x64, macOS 13, and Ubuntu 22.04, as the problem no longer occurs.
Updated•6 months ago
|
Description
•