Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[general css??] MathJax doesn't change color on dark mode #543

Open
Artoria2e5 opened this issue Jan 10, 2024 · 0 comments
Open

[general css??] MathJax doesn't change color on dark mode #543

Artoria2e5 opened this issue Jan 10, 2024 · 0 comments

Comments

@Artoria2e5
Copy link

Artoria2e5 commented Jan 10, 2024

The page https://drafts.fxtf.org/filter-effects/#attr-valuedef-type-huerotate renders poorly on dark mode as MathJax doesn't automatically adapt the colors. The W3C TR doesn't have the issue because it has no dark mode support.

A naive little @media (prefers-color-scheme: dark) { .MathJax_SVG > svg { filter: invert(1) hue-rotate(180deg); } } should make it reasonably readable. (Uh, that breaks MathJax "zoom frame" though. Maybe just slap on a white background for now. Should really be their problem.)

The thing is, I honestly have no idea where the main dark mode support comes from: on the filter-effects page, it's one of the <style> elements inlined into <head>. Please move this issue to whatever actual repository that contains the style templates for bikeshed (I guess?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant