Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

Learn More

Stop dark themes from inverting highlighted text colors

  • 4 답장
  • 2 이 문제를 만남
  • 17 보기
  • 최종 답변자: ismurfyou2

more options

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.

모든 댓글 (4)

more options

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
)

more options

Is there a way to disable that feature?

more options

선택된 해결법

more options

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.