Closed Bug 1725868 Opened 3 years ago Closed 3 years ago

Browser default colors not overridden by site styles

Categories

(Core :: Widget: Cocoa, defect)

Firefox 92
defect

Tracking

()

RESOLVED DUPLICATE of bug 1725436

People

(Reporter: raphael.kl, Unassigned)

References

Details

Attachments

(3 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:92.0) Gecko/20100101 Firefox/92.0

Steps to reproduce:

Visit any website. As an example, I'll use https://jessicainthekitchen.com/vegan-waffles/.

Actual results:

The link color is the browser default blue: rgb(0, 0, 238).

Expected results:

The link color should be the color specified by the site: rgb(48, 49, 51). There are other examples of styles not being overridden - for example, the border colors on some links are also the default (blue) rather than the color specified by the site CSS. I've attached a screenshot of the computed styles in devtools, which shows the strange behavior quite clearly.

The same thing occurs on all websites. I will attach screenshots below of https://nytimes.com and https://jessicainthekitchen.com/vegan-waffles/.

I've tried the following, to no avail: used a private window, restarted Firefox, restarted my computer, used troubleshoot mode, refreshed Firefox, and switched to the beta version of Firefox.

Summary: Browser default styles not overridden by site styles → Browser default colors not overridden by site styles

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Cocoa' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Widget: Cocoa
Product: Firefox → Core

Please make sure you don't have high contrast mode enabled in macOS.

This presumably applies:

If you'd like to change this back, you can navigate to about:preferences > Language and Appearance > Colors > set dropdown to "never" > OK

bug 1725436 comment 2

See Also: → 1725436

You figured it out - my Firefox did have high contrast mode enabled. I never turned that mode on, though. It somehow turned itself on. That behavior is the bug, I guess.

I now understand. Some time ago, I had enabled "increase contrast" in MacOS, which is a fairly subtle change as far as I can tell. It's so subtle, in fact, that I'd forgotten I'd enabled it. Recently, when Firefox updated, it inferred from my "increase contrast" setting that I wanted to use the browser's default colors. That was a mistaken inference in my case. To me, Firefox just seemed to be seriously confused about how to render websites, and this problem led me down a rabbit hole. Fortunately it led me to Bugzilla, where I learned what had happened.

My two cents: Firefox should ask, on startup, "You have Increase Contrast enabled in Mac OS X. Would you like Firefox to override colors? Yes/No". Then the user can choose this override deliberately.

Let's take the conversation to bug 1725436.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: