Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2021-06-02 01:31:39

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,387
Website

forced-colors support in Firefox

Firefox 89 now supports the forced-colors media query (by default): support for detecting and adjusting pages when the OS theme is set to e.g. Windows High Contrast themes (a bit of a misnamed setting, it is any “forced colours” theming). MDN doc is here. Microsoft Edge already fully supported it for a few versions. Theoretically, Chrome should support it as well as all the code is in Chromium, but I am not sure if it is enabled by default.

This is also good news for people developing on macOS, as they can now do some basic testing from macOS using Firefox. Emphasis is on basic, as macOS does not really support the forced-colours theme concept in the spec sense of the word (Windows way of theming).

Open Firefox -> Preferences, scroll down to the “Language and Appearance” subgroup, then click the “Colours” button. From the drop down below ‘Override the colours specified by the page […]’ choose “Always”.

Have fun testing…


Where is that emoji for a solar powered submarine when you need it ?

Offline

#2 2021-06-02 05:44:35

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,477
Website GitHub Twitter

Re: forced-colors support in Firefox

Yep, Philippe.

It’s much better now. And the support for forced-colors is supported:

@media screen and (-ms-high-contrast: active),(forced-colors: active){

}

Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#3 2021-06-02 06:10:12

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,387
Website

Re: forced-colors support in Firefox

Firefox still doesn’t support force-color-adjust though; that is a bit annoying as in some cases, being able to use the site colours is helpful – think the error/warning/success message boxes in Textpattern admin.

–^–

In related news, Safari 14.1 release now supports the prefers-contrast: more media query (reflects the user setting in the System preferences / accessibility.

–^–

Patrick, yes that combined media query should be supported.


Where is that emoji for a solar powered submarine when you need it ?

Offline

Board footer

Powered by FluxBB