A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

[Proposal] Make favicon react on OS’ color scheme switching

rumkin
2019-09-11

There should be a way to make favicon react on theme switching. Current list of media queries supported by meta attribute doesn’t include prefers-color-scheme query. It could be solved from a script, but it is non-optimal.

Motivation

Dark and especially black favicons became unrecognizable in dark mode.

Proposal

Add prefers-color-scheme into list of queries supported by icon’s media attribute.

tomayac
2019-09-13

FWIW, I have filed a feature request for this at https://bugs.chromium.org/p/chromium/issues/detail?id=970159.

rumkin
2019-09-13

Thanks. They have one more issue: several favicons passed with a page lock the ability of the tab to change favicon with changing order of the <link> element inside of a <head>. This bug passes away after page reloading. So it seems to be a very rare bug.

I have no registration on chromium’s bug tracker. Could you file it?

equinusocio
2020-07-14

This is already possible by using SVG favicons. The point is making SVG the default format for favicons.

rumkin
2020-07-14

Such change is fixing inconsistency of the media query support regardless to favicon format. And yes, you are right about SVG. Unfortunately it’s still a candidate.