-
-
Notifications
You must be signed in to change notification settings - Fork 533
SVG logo in the docs does not render in Firefox #3465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sounds to me like a firefox bug. Same on macOs. |
Any other SVG works, though. |
That doesn't mean that it's not a firefox bug for this particular SVG. |
But it also doesn't mean that the SVG isn't broken either 🤷♂️ |
Per https://caniuse.com/?search=svg, FF supports more SVG features than other browsers, by the way. Could it be that some other browsers are more forgiving? |
It could be. I can't see anything wrong, but if someone finds a fix PR welcome. Works on Safari and Chromium based browsers. |
I'll try to experiment later. Usually, playing with DevTools helps find what's wrong.. |
FYI: I tried re-exporting in Inkspace in various formats, but none of them seems to make FF happy. |
Looks like Removing the attribute or changing to non-background values from https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/in#usage_notes makes the logo show up. If it's not important, I suggest removing the entire There's also a reference to an ancient |
PR welcome 👍 |
I've also found that the workaround posted @ svg/svgo#732 works. And it looks like they had a PR fixing this. So I assume that processing the SVG via the |
It appears that Firefox has bugs around interpreting `<feBlend>` filters in SVG documents. This makes it render the logo as a transparent image in the docs, both in the mobile and the desktop versions. This patch applies a workaround [[1]] found on the internet to make it work without waiting for Firefox to fix their bug. Resolves tox-dev#3465. [1]: svg/svgo#732
Here's the workaround: #3466. |
Issue
$sbj. It works in Chrome, but in FF (Gentoo Linux, but I don't think this is related — it's just as broken in Firefox on Android) it renders blank. Other SVGs work for me. Like I can, see https://github.com/aio-libs/aiohttp/blob/8844385/docs/aiohttp-icon.svg. But https://github.com/tox-dev/tox/blob/e3e77a6/docs/_static/img/tox.svg is just blank everywhere — on RTD, in the GH preview and when accessing by the direct raw URL (https://tox.wiki/en/latest/_static/tox.svg). The browser gets the file and DevTools show that the nodes are being parsed.
There must be something wrong with that XML in SVG that is incompatible with FF. This needs to be investigated.
The text was updated successfully, but these errors were encountered: