w3c / fxtf-drafts

Mirror of https://hg.fxtf.org/drafts
https://drafts.fxtf.org/
Other
68 stars 49 forks source link

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

Open Artoria2e5 opened 5 months ago

Artoria2e5 commented 5 months ago

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?).