Scrolling & zooming SVG Viewer on Windows? Scrolling & zooming SVG Viewer on Windows? windows windows

Scrolling & zooming SVG Viewer on Windows?


You need to add viewBox attribute to the <svg> element and wievers will scale the image to the available viewport.

<svg viewBox='0 0 7200 7200' ... >

You may want to try Opera SVG Viewer to preview multiple svg files at once.


If you use a custom css browser extension such as Stylus, you can set up a CSS style for overflow on the root element, which should be <svg>:

:root {    overflow:auto !important;}

This is pretty harmless for any html page but you can have it only apply to .svg urls via the url regex filter:

^.*[.]svg$

Now with this in place, opening an svg in a new tab will apply the style and allow you to scroll around. Zooming in and out should automatically adjust scrollbars.