Resizing SVG With Internet Explorer
Wednesday 30th March, 2016 17:59 Comments: 0
My code used to work in every browser. It used to work fine in Internet Explorer. It's stopped working in IE11 and Edge.
After a bit of fiddling, I found a very simple workaround. I saved the SVG file as PNG and modified the HTML to load the PNG version. Now it all works fine, although the PNG resizing using JavaScript isn't as smooth or pretty as the SVG version (which was why I went with SVG to begin with). I think it's safe to blame IE for not displaying SVG files properly, and I'm wondering if there's been a change in behaviour.
After a bit of fiddling, I found a very simple workaround. I saved the SVG file as PNG and modified the HTML to load the PNG version. Now it all works fine, although the PNG resizing using JavaScript isn't as smooth or pretty as the SVG version (which was why I went with SVG to begin with). I think it's safe to blame IE for not displaying SVG files properly, and I'm wondering if there's been a change in behaviour.