Bug 1885030 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Currently we have tokens defined for both [prefers-contrast](https://searchfox.org/mozilla-central/rev/b189986e26a92f749462094e7869771c1a6607c0/toolkit/themes/shared/design-system/tokens-shared.css#188) and [forced-colors](https://searchfox.org/mozilla-central/rev/b189986e26a92f749462094e7869771c1a6607c0/toolkit/themes/shared/design-system/tokens-shared.css#238) media queries.

Historically we have tended to define Windows HCM styles and tokens in `@media (prefers-contrast)` blocks. This was a mistake since those styles would also get applied in Mac OS / Windows /Linux increased-contrast modes, even though designs and CSS styling for UI in increased-contrast modes largely do not exist.

More recently we have started adding HCM tokens in `@media (forced-colors)` blocks, but some older tokens are still in `prefers-contrast` blocks. We should audit the `prefers-contrast` tokens and consider either migrating them to `forced-colors` or removing them entirely.
Currently we have tokens defined for both [prefers-contrast](https://searchfox.org/mozilla-central/rev/b189986e26a92f749462094e7869771c1a6607c0/toolkit/themes/shared/design-system/tokens-shared.css#188) and [forced-colors](https://searchfox.org/mozilla-central/rev/b189986e26a92f749462094e7869771c1a6607c0/toolkit/themes/shared/design-system/tokens-shared.css#238) media queries.

Historically we have tended to define Windows HCM styles and tokens in `@media (prefers-contrast)` blocks. This was a mistake since those styles would also get applied in Mac OS / Windows / Linux increased-contrast modes, even though designs and CSS styling for UI in increased-contrast modes largely do not exist.

More recently we have started adding HCM tokens in `@media (forced-colors)` blocks, but some older tokens are still in `prefers-contrast` blocks. We should audit the `prefers-contrast` tokens and consider either migrating them to `forced-colors` or removing them entirely.

Back to Bug 1885030 Comment 0