Open Bug 1691962 Opened 5 years ago Updated 2 years ago

[meta] Replace relevant usages of -moz-windows-default-theme media query with prefers-contrast

Categories

(Toolkit :: Themes, task)

task

Tracking

()

People

(Reporter: ntim, Unassigned)

References

Details

(Keywords: meta)

Most usages of this media query are to differenciate high contrast themes from default themes. Those usages can be switched to prefers-contrast.

@media (-moz-windows-default-theme) would change to @media not (prefers-contrast)
@media (-moz-windows-default-theme: 0) would change to @media (prefers-contrast)

Also adds supports for HCM on macOS as well on the way. (thanks to https://phabricator.services.mozilla.com/D104562)

I would suggest starting with the usages in the shared directories first. For windows-specific dirs, it's worth looking at whether that code could be shared with other platforms for better a11y.

https://searchfox.org/mozilla-central/search?q=-moz-windows-default-theme&path=&case=false&regexp=false

Depends on: 1691965
You need to log in before you can comment on or make changes to this bug.