Steps to replicate the issue (include links if applicable):
- Set firefox (109.0.1) to prefer dark mode, using about:preferences -> Language and Appearance -> Website appearance -> Dark
- Enable MediaWiki gadget in user preferences "Core styling for dark mode"
- Set Wikipedia to use light mode (for example by enabling the "Dark mode toggle" gadget)
- Visit any article
What happens?:
The article body text appears in shades of light gray which are hard to read:
What should have happened instead?:
Text color should be black, or #202122.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
It seems that the CSS is at fault. Firefox picks up this rule:
@media (prefers-color-scheme: dark) { body { color: hsl(210,10%,62%); } }
However, it should have used this instead:
@media screen { body { color: #202122; } }
I don't see this behavior on other wikis, so it could be caused by a bug in English Wikipedia's dark mode support.