My SVG isn't scaling to 100% width in Safari like it is in IE, Chrome, and Firefox. Despite numerous attempts, I haven't been able to make my SVG stretch across the full width like it does in other browsers. The project is built using React.
.hero-svg {
display: flex;
width: 100%;
}
svg {
display: flex;
width: 100%;
z-index: -1;
}
<div className="hero-svg">
<svg viewBox="0 0 1440 320">
<path fill="#3dd0f2" fillOpacity="1" d="M0,128L80,117.3C160,107,320,85,480,117.3C640,149,800,235,960,229.3C1120,224,1280,128,1360,80L1440,32L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"></path>
</svg>
</div>
I attempted to use
preserveAspectRatio = "none"
, but unfortunately, it didn't yield significant changes.
Below are screenshots comparing how the SVG appears in Chrome versus Safari:
Chrome:
https://i.sstatic.net/lyuck.png