[win][HCM] Tooltip text is not visible with HCM#2
Categories
(Core :: Widget: Win32, defect, P2)
Tracking
()
People
(Reporter: phorea, Assigned: emilio)
References
(Blocks 1 open bug)
Details
(Keywords: access)
Attachments
(2 files)
Note
- Reproduced only with Windows High Contrast #2 - default settings
Affected versions
- Firefox 98.0 RC
- Nightly 99.0a1
Affected platforms
- Windows 10 with High Contrast # 2
Steps to reproduce
- Open Firefox when HC#2 is active
- Open several tabs and hover them to see their summary
- Hover all icons on toolbar
Expected result
- Tooltip text is readable in HCM
Actual result
- Text is not visible
Regression range
- Reproduced on a 77 build, so not a regression
Comment 1•3 years ago
|
||
Since the tooltip text seems to be completely unreadable I am designating this as access-s2
Comment 2•3 years ago
|
||
The severity field for this bug is set to S4. However, the accessibility severity is higher, [access-s2].
:dao, could you consider increasing the severity?
For more information, please visit auto_nag documentation.
Comment 3•3 years ago
|
||
What tooltip colors do you get in other applications? Are we using the wrong background color here or the wrong text color?
Reporter | ||
Comment 4•3 years ago
|
||
(In reply to Dão Gottwald [::dao] from comment #3)
What tooltip colors do you get in other applications? Are we using the wrong background color here or the wrong text color?
Most apps have green text (the default text set for High Contrast # 2) for tooltips.
Comparing with High Contrast # 1, where the default text is yellow on black background, I think the wrong text color is used here. Every tooltip is affected, I've updated the description.
Comment 5•3 years ago
|
||
So we use -moz-default-appearance: tooltip;
and color: InfoText;
(see https://searchfox.org/mozilla-central/source/toolkit/themes/windows/global/tooltip.css) and we probably need to use color: windowtext;
instead. Emilio, can you tell if there's still a case where we use the background-color: InfoBackground;
fallback?
Updated•3 years ago
|
Assignee | ||
Comment 6•3 years ago
|
||
Hmm, according to https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor InfoText
/ InfoBackground
are the right color pair to use... And the native tooltip drawing code basically just uses that, so I'm surprised this is happening.
What does the InfoBackground
color compute to in that setup? Is it transparent? Or is it somehow black in both?
Comment 7•3 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #6)
Hmm, according to https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getsyscolor
InfoText
/InfoBackground
are the right color pair to use... And the native tooltip drawing code basically just uses that, so I'm surprised this is happening.
But note that the page says "Windows 10 or greater: This value is not supported."
What does the
InfoBackground
color compute to in that setup? Is it transparent? Or is it somehow black in both?
Hm, I think I've already upgraded to Win11 which has different high contrast themes, but I'll double check.
Assignee | ||
Comment 8•3 years ago
|
||
I have a win10 machine, I can try to poke.
Assignee | ||
Comment 9•3 years ago
|
||
The color computes to opaque yellow, so using appearance: none would fix the rendering. So this seems a bug in the windows native theme.
Comment 10•3 years ago
|
||
Thanks, Emilio.
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 11•3 years ago
|
||
This removes the rounded, native-looking tooltips on Windows 7, but I don't
think it's too concerning, let me know if you disagree. I'm not sure what's
our Windows 7 support status, but in any case this regression would be
relatively minimal.
On regular (non-HCM) Windows 10+ we just fill a rect with infobackground color
and so on, so there shouldn't be any effective behavior change.
On HCM we go through the themed codepath and fail catastrophically, so just
don't do it.
Updated•3 years ago
|
Comment 12•3 years ago
|
||
Does this affect how we respond to OS font scaling at all?
Assignee | ||
Comment 13•3 years ago
|
||
No
Comment 14•3 years ago
|
||
Comment 15•3 years ago
|
||
bugherder |
Comment 16•3 years ago
|
||
Since the status are different for nightly and release, what's the status for beta?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Comment 17•3 years ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
If not please set status_beta
to wontfix
.
For more information, please visit auto_nag documentation.
Assignee | ||
Comment 18•3 years ago
|
||
Probably not, but please correct as needed.
Updated•3 years ago
|
I managed to reproduce this on Firefox 100.0(20220428192727) on Win10 64-bits. Verified as fixed on Firefox 101.0b7(20220515185854), Nightly 102.0a1(20220515214519) on Win10 64-bits.
Updated•1 years ago
|
Description
•