-
Notifications
You must be signed in to change notification settings - Fork 21
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
SVG displaying problem with Firefox (after last udpate) #215
Comments
Nice energy dashboard! Try disabling SVG injection: options:
svginjection: false # true (default) for injection,
# false for keeping the external file I will check firefox to see if I can find the problem FF has with injected SVGs. |
I'm having the same issue with FF (v113.0.1) on Windows 11. No issues with Chrome or Edge. Where does the codeblock for disabling svgingection go? I tried it here with no change:
|
On the same level as the styles. - type:
options:
svginjection: false
styles: |
Yup, FF does weird things with some of the SVGs:
I must do more testing to find out what the problem is with FF when injecting SVGs. I have checked the CSS property According to the inspector, FF does calculate the space for the SVG as it should: The size of the actual SVG is also right: This you can see from this image. They are identical: So FF knows the exact - right - size of the SVG, but is clipping the image in some situations! |
FF seems to have a large history of clipping and masking problems if I browse the internet. That helped in understanding why Safari and Chromium (Chrome / Edge) render as expected, and FF not. So, after some hours of experimenting and adapting the UserSVG tool, it works now in FF:
|
Bug report notice
SVG are cropped in Firefox. It seems to be OK with Chrome
Animation (animated SVG) are not smooth. I seems to be OK with Chrome
Swiss Army Knife version
The problem appears with last update v2.4.4
All was functional before update.
Bug description
Some part of SVG are not displayed
To Reproduce
Display the card with Firefox browser
Screenshots
Firefox
Chrome
Desktop browser (please complete the following information):
The text was updated successfully, but these errors were encountered: