Jeff Schiller: I’ve admired Sam Ruby’s desire to use inline SVG for his blog - I think his clip art adds visual appeal to his site. I wish I had Sam’s artistic sensibilities/patience (or that slipping into a scotch-induced trance would help). But artistic ability aside, I have been struggling with inline SVG as a concept since then. I thought I’d outline the advantages and disadvantages to inline SVG as I see them.
Thanks!
FYI: my personal “publish” interface has a select dropdown that lets me chose from my ever growing pallet of icons and incorporates then into the page in a way that allows resizing.
Resizing and syndication are two other advantages. I’m particularly concerned about syndicating <object> tags from a perspective of safety.
I suspected you had a much nicer interface for this.
Also, thanks for reminding me about the resizing thing - however, wouldn’t this also work if you applied style="width:6.25em; height:6.25em; float:right" to the object element that referenced SVG? I should do a test one of these days.
Firefox says:
XML Parsing Error: not well-formed
Location: [link]
Line Number 1, Column 46:<svg xmlns="http://www.w3.org/2000/svg" right" viewBox="0 250 400 150">
---------------------------------------------^
(Uh, the arrow is pointing to the " at the end of the ‘right"’.)
When I first looked at SVG, I tried to incorporate it into a page via the IMG tag. When that didn’t work I got upset and I haven’t returned to it since.
I’d quite like to serve up either SVG or a crude server-rendition of it as PNG according to the browser’s Accept headers.
Sam Ruby puts inline SVG on his blog. SVG is a language for describing scalable vector graphics. Browsers that understand SVG can render the graphics directly rather than downloading a rater-based image with another HTTP GET. Because its tags, you...
Sam Ruby puts inline SVG on his blog. SVG is a language for describing scalable vector graphics. Browsers that understand SVG can render the graphics directly rather than downloading a rater-based image with another HTTP GET. Because its tags, you...
Sam had a good thought over at Erik’s blog. In the past, I’ve mostly been on the side of referenced SVG for clip art - but he raises a good point. I’ve just stated to use clip art on my blog. I use it for a variety of reasons: to...