Mobile Safari SVG Problem

Posted by md5sum on Stack Overflow See other posts from Stack Overflow or by md5sum
Published on 2010-12-21T23:33:43Z Indexed on 2010/12/22 18:54 UTC
Read the original article Hit count: 201

Filed under:
|
|

I'm trying to get an SVG image to show up on my iPhone (or iPad) default browser, but I can't seem to get even just a rect to show up.

Example at: http://www.invalidpage.com/svg/svgtest.html

Source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/html1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us">
  <head>
    <title>SVG iPhone Test</title>
  </head>
  <body>
    <div>
      <svg width="500" height="220">
        <rect x="2" y="2" width="496" height="216" stroke="#000" stroke-width="2px" fill="transparent"></rect>
      </svg>
    </div>
  </body>
</html>

© Stack Overflow or respective owner

Related posts about iphone

Related posts about svg