In-content UX and add-ons have very small fonts
Categories
(Core :: Widget, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr68 | --- | unaffected |
| firefox-esr78 | --- | unaffected |
| firefox80 | --- | unaffected |
| firefox81 | --- | unaffected |
| firefox82 | --- | disabled |
| firefox83 | --- | fixed |
People
(Reporter: gcp, Assigned: spohl)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Current Nightly, Linux, widget.disable-native-theme-for-content = true
about:downloads (and likely similar pages) and add-ons (such as uBlock Origin) have very small fonts now, likely a new regression from non-native theming changes.
Updated•5 years ago
|
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 1•5 years ago
|
||
Inspector indicates the font size changed from 14.66px to 13px.
| Reporter | ||
Updated•5 years ago
|
Comment 2•5 years ago
|
||
So this is because we are using the theme there, and we're forcing all the system font sizes to be effectively default-font-size - 3px (which is 13px in your case).
I think we should limit it to the fonts we care about.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Set release status flags based on info from the regressing bug 1656264
| Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #2)
So this is because we are using the theme there, and we're forcing all the system font sizes to be effectively default-font-size - 3px (which is 13px in your case).
I think we should limit it to the fonts we care about.
What fonts would this be? The UX spec expects form elements to have a font size of 13px. It seems to me that this is irrespective of the actual font chosen. Ideally, we could adjust the font size if:
- The font is used in a form control;
- The form control isn't CSS styled;
- The form control does not have a custom font size specified.
I am not sure if we can currently achieve this. If this isn't possible, we might have to consider leaving the default font size alone. This would be a question for UX at that point...
Comment 5•5 years ago
|
||
These are the fonts used in form controls: https://searchfox.org/mozilla-central/search?q=font%3A&path=forms.css&case=false®exp=false
-moz-fixed is just monospace, which also defaults to 13px if not overridden, so that's fine. So it seems just reducing the size of the -moz-field, -moz-button and -moz-list fonts is what you want, isn't it?
| Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #5)
These are the fonts used in form controls: https://searchfox.org/mozilla-central/search?q=font%3A&path=forms.css&case=false®exp=false
-moz-fixedis justmonospace, which also defaults to 13px if not overridden, so that's fine. So it seems just reducing the size of the-moz-field,-moz-buttonand-moz-listfonts is what you want, isn't it?
Right, I'm not clear on how to achieve this though. As far as I know, we can't adjust the size in forms.css without impacting native themes too and I believe that when we compute system fonts in nsLayoutUtils, it is irrespective of where the font is used. Where do you suggest we adjust the font size?
Comment 7•5 years ago
|
||
You have the font id in ComputeSystemFont, which should allow you to distinguish those fonts right?
Comment 8•5 years ago
|
||
That is, I think you just need an extra condition in the current if.
| Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
| bugherder | ||
Description
•