- From: Samuel Bronson via GitHub <sysbot+gh@w3.org>
- Date: Fri, 16 Sep 2022 20:27:38 +0000
- To: public-svg-issues@w3.org
I was thinking something like this could help SVG-based equation rendering in MediaWiki work in dark themes. This could also be done by serving differently-colored resources somehow, but this would either bloat the cache with 2+ copies of each equation or require custom logic to serve resources from the cache. (The current logic may well be "serve files from this directory and tell me if one is missing", encoded in some httpd-specific way.) SVG parameters, on the other hand, would probably only need small changes to the equation renderer and a few extra bytes tacked on to each cached SVG, though the HTML side might be somewhat more involved since `img`'s `src` attribute obviously isn't CSS ... I assume one can't simply write a CSS rule that overrides the choice of URL for an `img` but leaves everything else the same? Oh well, they probably already can't generate theme-agnostic HTML for wiki content ... N.B. I don't actually contribute code to MediaWiki, so I am not the most knowledgeable about their architecture and definitely can't say for sure that they would use this if it were implemented. But it seems a lot more practical than getting good interoperable MathML rendering in all three browser engines! -- GitHub Notification of comment by SamB Please view or discuss this issue at https://github.com/w3c/svgwg/issues/880#issuecomment-1249782438 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 16 September 2022 20:27:40 UTC