This is the talk page for discussing improvements to the Global Lua Modules/Math-colors page.
- Please sign and date your posts by typing four tildes (
~~~~). - Put new text under old text. Click here to start a new topic.
- If you're new to the wiki, please take a look at the talk page help.
- Be polite
- Assume good faith
- Be welcoming
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
\pagecoloruseless. Portability might still be an issue, though: if you set\colorto something light (e.g.255,255,255), the text will be difficult to read on Mercury. MathJax lets us use CSS instead, by adding thecolorproperty 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)