Hacker News new | ask | show | jobs
by igt0 3555 days ago
SVG is amazing, my main concern about it. it is because it creates a huge burden to browser developers. The spec is huge [1]. And some parts are outdated[2].

[1] https://github.com/WebKit/webkit/tree/master/Source/WebCore/... [2] https://developer.mozilla.org/en-US/docs/Web/SVG/SVG_animati...

2 comments

> SVG is amazing, my main concern about it. it is because it creates a huge burden to browser developers.

Yes, it would have been better if SVG was designed on top of something simpler; and this something simpler could be implemented by browser developers. Probably, such an approach is more secure too. But, I guess it is too late now.

I imagine they could implement it on top of Canvas/WebGL.
Like https://github.com/canvg/canvg (which AFAIK doesn't do hit testing like 'real' SVG, but is a promising start).
Browser support is kind of okay. The problem is more that it is hardly supported outside of browsers because of the complexity
To be fair, this is equally true of HTML.