Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Stop dark themes from inverting highlighted text colors

  • 4 பதிலளிப்புகள்
  • 2 இந்த பிரச்னைகள் உள்ளது
  • 183 views
  • Last reply by ismurfyou2

Default highlighted text is white on a blue background, but dark themes on Youtube, Twitter, etc seem to be inverting that to blue text on a white background in Firefox.

I'm not sure if I missed a setting somewhere, I've tried manually setting background and foreground colors for selected text, but it's still being inverted.

Default highlighted text is white on a blue background, but dark themes on Youtube, Twitter, etc seem to be inverting that to blue text on a white background in Firefox. I'm not sure if I missed a setting somewhere, I've tried manually setting background and foreground colors for selected text, but it's still being inverted.

தீர்வு தேர்ந்தெடுக்கப்பட்டது

All Replies (4)

That is the result of a feature to ensure proper contrast. When the calculated contrast isn't enough then text and background colors are swapped. This is likely to happen when you use a dark theme.

  • Bug 255941 - Highlight colour / color does not contrast with document text or background

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)

தீர்வு தேர்ந்தெடுக்கப்பட்டது

Alright, thanks for the help.

It looks to me like you'd have to do something like modify the value of mSufficientContrast to something low enough to ensure backLuminosityDifference is always greater. But I wouldn't know how to go about that or if its even possible to do so.