5 entries tagged safari and svg

SVG: embed or object?

I have been forced to post a response to a page in SVGWiki, because my attempts to enter a response using the Wiki page itself have failed with a VBScript error. I also have to say that while I think the Wiki concept of universal editorship is great, its reliance on its own quirky syntax is a little annoying. (On the other hand, HTML is not as amenable to hand-editing as it might be. This is a result of its being based on the splendidly verbose SGML syntax.)

Update (8 May 2002). I have updated SVGWiki—after connecting to it with MSIE rather than Mozilla or Opera. Perhaps there is some MSIE-specific JavaScript code involved?

Update (14 February 2004). My note on the object tag has been updated to reflect the fact that Safari 1.0 (released 2003) cannot handle objects containing embed.

Alleged Tarot brush-up (3)

The SVG-powered simulated deal now works on Safari. In the end I achieved this by using the special attribute that signals to Adobe that it should use its own JavaScript engine, not its host’s (in this case, Safari’s). I have also belatedly switched the script to using document.URL to find its URL rather than the HTML-style location.search (which fails on Safari as well). Read more

SVG Tarot in Safari 4

I created the Alleged Tarot in 2002 using SVG, which I was confident at the time was the next big thing in web graphics. Seventy thousand years later, I notice that Safari 4 supports SMIL-style animations in SVG, which means that the commentary and animations I incorporated in to the card designs now work again for the first time since Adobe abandoned their SVG Viewer plug-in. Read more

Recipe for SVG to PNG with svg2png

The SVG files generated by Lineform have a viewBox attribute and no width and height attributes on the outermost svg element. This is good because it means that is necessary to get Webkit browsers (at least) to treat them as scalable (apparently the S in SVG was not enough of a hint). Alas! the svg2png utility I want to use to downgrade SVG files to PNG requires width and height attributes or it assumes nonsensical values. Here’s my silly recipe for achieving this without having two copies of every SVG file. Read more