The viewBox is supposed to describe the extent of the elements in your SVG. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey, Convert SVG to image (JPEG, PNG, etc.) Unlike a JPEG or PNG, an SVG requires a processing or translation of sorts, which is why some browsers like Chrome render out the file beautifully while some like Safari fail to do so. Excellent write-up and a great example on how to use a well-tempered debugging approach! Since the issue has occurred on the first two buttons, well isolate the first button and see what happens. Get started with $200 in free credit! You can see it in the sample photos below. Here's How I Solved a Weird Bug Using Tried and True Debugging To learn more, see our tips on writing great answers. Another option is to define the className of the SVG in the parent component and add styling in the child where it's being rendered. I did check in Chrome and Ffox and everything looked very sharp so this antialiasing issue is only in Safari. I wanted to see if there are other fixes that can work. We can conclude that the issue lies within the rest of the SVG code. Why did DOS-based Windows require HIMEM.SYS to boot? Connect and share knowledge within a single location that is structured and easy to search. If you are not using my javascript to resize the svgs, use the following css settings for the SVG container (.ey-col-svg) and the SVG itself (.areaSVG): If you are using my messy javascript, please note both the container and the SVG will both initially have the setting display: none in the CSS, and then the javascript will change both of them to have the same displays settings I have shown above [with the container (.ey-col-svg) set to display: block and the SVG (.areaSVG) set to display: inline-block]. Direct solutions were either too far-reaching for me (tinkering with PHP or web.config) or they just didnt work the focus was on the size of the logo. We can consider the possibility that there is a bug in the Safari browser that causes SVG to render incorrectly when some specific style applies to the SVG element, like a flex layout, for example. privacy statement. Content Discovery initiative April 13 update: Related questions using a Review our technical responses for the 2023 Developer Survey, Svg with image inside is not showing in safari. On browsers like Safari and even Firefox, Ive found that SVG files dont always render according to that theory, at least when it comes to designs with text. Can someone explain why this point is giving me 8.3V? The affected SVGs are positioned inside a