Browsers are really not good at rendering SVG. Both WebKit and Gecko are riddled with bugs once you start using the non-trivial features of SVG. Worse still, browsers don't even support the latest version of SVG, which suffered a fate similar to ECMAScript 4. However, vector illustrating programs will happily generate files which use the browser-incompatible newer versions.
So while it may be possible to target SVG as a backend for rendering basic drawings, displaying arbitrary SVG files is, in practice, a lost cause.
Re:Improving GitHub for science
by TTPrograms on Thursday May 15, 2014 @01:28AM
(#7747987)
They don't have to send the straight svg for preview. They could either modify it for compatibility or at least render it server-side to raster and send it over. It's not impossible, at any rate.
It's not only a matter of compatibility but a multitude of security issues as well.
Re:Improving GitHub for science
by santaclaus on Thursday May 15, 2014 @09:24AM
(#7749240)
Lackluster SVG support doesn't stop with browsers. Even Adobe Illustrator manages to royally botch SVG support -- try anything with transparency.
It's frustrating how difficult it is to get anybody at Github do work on small things since there's "no manager" and everybody wants to focus on grandiose projects.