News for hackers. Stuff that matters.
Re:Evaluating a class of infinite sums in closed form by johndcook on Sunday August 04, 2024 @12:31PM (#41154585)
I believe the SVG file has a transparent background, but the img tag has style="background-color:white". Some browsers honor the background-color setting and show a white background behind the equations, even in dark mode. Some do not, and so the equations appear as black-on-black.

It would be better if I altered the SVG image itself to set the background color, but I don't know how to do that. Suggestions are welcome.

Re:Evaluating a class of infinite sums in closed form by layer8 on Sunday August 04, 2024 @12:44PM (#41154693)
Displaying black on white in dark mode is still bad. In principle, CSS invert() should be able to do the trick for SVGs. You’d have to test it on all relevant browsers though.
Re:Evaluating a class of infinite sums in closed form by xigoi on Monday August 05, 2024 @12:06PM (#41162602)
Not even that, you should just use currentColor rather than black in SVGs.
Re:Evaluating a class of infinite sums in closed form by layer8 on Tuesday August 06, 2024 @01:38PM (#41173186)
Depends on whether you have control over the SVG contents or not.
Re:Evaluating a class of infinite sums in closed form by xigoi on Tuesday August 06, 2024 @01:44PM (#41173258)
Why would you not have control over the markup of your own website?