I don't really see the point of using SVG to render an image. 
The fact that the Android team choose not to support images in SVG is on 
purpose: it's heavier than plain image, where weight is the big point for 
mobile.

Instead of SVG, i would use a JS to detect screen resolution and switch to SD / 
HD images.

R.

Le 8 juil. 2010 à 20:04, Jonathan Hawkes a écrit :

> I'm trying to write a web app that works in both Android and iPhone. I wanted 
> to use SVG images so that they would scale well.  I have just found that 
> Android WebKit does not support SVG, so I wanted to have a fallback PNG for 
> Android. I first tried using the <OBJECT> tag, but that makes the image lose 
> transparency for some reason. I also tried multiple CSS rules:
> 
> div.logo {
> background:url(/images/logo.png) no-repeat scroll center center;
> background-image:url(/images/logo.svg);
> height:115px;
> }
> 
> But Android WebKit still picks up on the second rule even though it can't 
> support it. Any ideas?
> 
> Thanks!
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "iPhoneWebDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/iphonewebdev?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to