4 ms·
Things like this convince me more and more that SVG is overdesigned and solving the wrong problem: The world needed a vector version of PNG far more than it ne
by Pxtl 8y ago
Things like this convince me more and more that SVG is overdesigned and solving the wrong problem:
The world needed a vector version of PNG far more than it needed a vector version of HTML/CSS.
- mfabbri77 8y agoDefinitively, this.
- gardaani 8y agoW3C is creating a subset of SVG called "SVG Native". It is intended for icons and simple graphics, so it won't have support for text, scripts, links or XSL processing. Also, use of CSS or animations isn't recommended. It will be similar to SVG in OpenType fonts: https://docs.microsoft.com/en-us/typography/opentype/spec/svg https://docs.microsoft.com/en-us/typography/opentype/spec/sv...
- pavlov 8y agoWasn't there already "SVG Tiny" for this purpose? I recall it being used on mobile a long time ago, like circa 2005.
- pjmlp 8y agoAnother subset to join the ones already being used by UWP, Android and iOS. Oh well, xkcd comes to mind.
- Pxtl 8y agoNeat. Hopefully it gets adopted. And hopefully it uses its own file-extension so I can actually tell them apart - I'd love to have, like ".svgn" for native svg.
- microcolonel 8y agoI will push back a bit and say SVG's integration with HTML documents is very convenient and useful. I think it has been held back by poor implementation, particularly Mozilla's. The SMIL stuff has made the SVG DOM a bloody mess, and it's deprecated everywhere, which is a sad outcome, but it's still useful.
- bitbang 8y agoThat makes no sense. SVG _is_ the vector equivalent of PNG. Just because it's defined in an xml namespace that can be directly embedded in html, doesn't mean it is somehow bound to it.
- Pxtl 8y agoI can't write JavaScript inside of a PNG. I can't reference external resources inside of a PNG. I can't reference CSS classes inside of a PNG. I can't animate a PNG. A PNG is a simple, dumb, uncomplicated file with a minimal surface area for vulnerabilities.