Over a million developers have joined DZone.

Scalable Vector Graphics Support in Current Browsers

DZone's Guide to

Scalable Vector Graphics Support in Current Browsers

· Java Zone
Free Resource

Learn how to troubleshoot and diagnose some of the most common performance issues in Java today. Brought to you in partnership with AppDynamics.

Summary: Scalable Vector Graphics (SVG) is OK in the latest browsers, but there are inconsistencies. If the last mile were closed, then bloggers like me would appreciate the speed improvement (and scaling) for end-users.

Last week’s blog entry used SVGs instead of PNGs for the images, and here are clips of that so we can compare in all browsers (SVG made in OmniGraffle).


It looks great, on Chrome (as I intended in OmniGraffle):


The diagram is OK in Firefox, but text not at the bottom is not. Particularly the “r” and “e” of “are” smushed together:


Safari is close to OK, but some of the text in the boxes is inexplicably ghosted:

Internet Explorer 9

The aspect ratio might not be as bad as it looks, as I’m using SauceLabs to crank up IE Virtual Machines.

The text below the boxes is really bad:

Internet Explorer 10

Looks OK in IE 10. Same aspect ratio thing from SauceLabs though:

Playing the waiting game

There’s caniuse.com/svg that’s worth checking out to track progress of things. It really needs shades of green though, as there’s still variance.

There’s also Ben Howdle’s svgeezy to allow a graceful fallback to PNGs for even older browsers (needs JavaScript)

Finally, there’s an ACID test for SVG that shows a lot of difference for even current browsers

Understand the needs and benefits around implementing the right monitoring solution for a growing containerized market. Brought to you in partnership with AppDynamics.


Published at DZone with permission of Paul Hammant, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}