On macOS, selected <option> has inconsistent line-height due to ✓ character
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox88 | --- | fixed |
People
(Reporter: josh.tumath+bugzilla, Assigned: emilio)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:87.0) Gecko/20100101 Firefox/87.0
Steps to reproduce:
Test case: https://codepen.io/joshtumath/pen/eYBPRrG
- On macOS, create a HTML page with a <select> with <option>s.
- Using CSS, apply a custom font to the <body> and set select { font-family: inherit; }
- Open the select menu.
Actual results:
The line height is inconsistent on the row with the ✓ character. Also, the font has changed from the macOS system default - but not to the custom font that I've set.
Expected results:
Each option's line height should be the same, and it should be using the default system font for select options.
Comment 1•4 years ago
|
||
I can confirm this problem. @emilio maybe this can be addressed in the non-native theme work?
Also note: Chrome and Safari don't fall back to a "serif" checkmark.
Assignee | ||
Comment 2•4 years ago
|
||
I can poke, but this is not particularly related to non-native theme.
Assignee | ||
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
Otherwise with some fonts the menus look off. This doesn't change visual
appearance with the default font, afaict (but I don't have such a good eye so
please double-check).
Maybe we should do this only for the content select dropdown, but then again my
untrained eye doesn't see an issue for other menuitems either so...
Depends on D107629
Assignee | ||
Comment 5•4 years ago
|
||
So there's the line-height issue, and then with that fixed there's ugliness from this uneven padding. With the default font, that looks about right, but with a custom font like the test-case it really looks quite off.
Comment 7•4 years ago
•
|
||
Backed out 2 changesets (bug 1696931) for causing mochitest failures in test_menulist_position.xhtml
Backout link: https://hg.mozilla.org/integration/autoland/rev/c536111e7e4c69f35e388fe12f254dda8fd8d807
Push with failures, failure log.
Assignee | ||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/dda4e84b3332
https://hg.mozilla.org/mozilla-central/rev/c9b1ea465836
Updated•4 years ago
|
Description
•