Fandom Developers Wiki

This is the talk page for discussing improvements to the Global Lua Modules/Math-colors page.

With the recent update to MathJax, is this module still needed? speedy🔔︎🚀︎ 14:04, April 30, 2018 (UTC)

Maybe? MathJax eliminates the "halo" effect, thereby making \pagecolor useless. Portability might still be an issue, though: if you set \color to something light (e.g. 255,255,255), the text will be difficult to read on Mercury. MathJax lets us use CSS instead, by adding the color property to a container (e.g. <span style="color: white;"><math>x</math></span>). That doesn't work if the user sets their renderer to SVG, but I think the following fixes the issue:
.MathJax_SVG > svg > g {
    fill: currentColor;
    stroke: currentColor;
}
...Or at least, that hasn't caused me any problems in the last 20 minutes! :p DarthKitty (talk) 20:52, May 2, 2018 (UTC)
Just spotted this PR on GitHub, which does exactly what I posted above. Once that goes live, there will be absolutely no reason to use this module! 🎉 DarthKitty (talk) 23:11, May 3, 2018 (UTC)