Loading ...
Sorry, an error occurred while loading the content.
 

Re: browser stretching SVG IMG

Expand Messages
  • Holger Jeromin
    ... IE9 renders the page in quirksmode, so the result is wrong. changing the page to standard mode, all is right. results in quirksmode: iframe is all white
    Message 1 of 3 , Nov 21 3:30 AM
      Erik Dahlstrom schrieb am 21.11.2011 10:51:
      > On Sun, 20 Nov 2011 18:24:40 +0100, Kenneth Nellis<nellisks@...>
      > wrote:
      >> I was surprised to see such disparate browser behavior in rendering an
      >> external SVG image within an HTML web page using the IMG tag, Despite
      >> the image specifying preservation of aspect ratio, on the Macintosh
      >> (Snow Leopard) platform, Safari and Chrome stretch the image according
      >> to the size of the browser page! (WTF?) Firefox and Opera don't stretch
      >> it at all, which certainly is correct behavior. (Camino doesn't render
      >> it at all.) Clearly, advice is not to use IMG for SVG as all browsers
      >> tested support IFRAME, OBJECT, and EMBED just fine.
      >> This page demonstrates the issue:
      >> http://homepage.mac.com/nellisks/verizon/svg/include_svg.html
      > FWIW it looks ok in Chrome 17.0.945.0, so it might have been fixed.
      >
      > Did you test in IE9 and up too?

      IE9 renders the page in quirksmode, so the result is wrong. changing the
      page to standard mode, all is right.

      results in quirksmode:
      iframe is all white (no circle)
      object is white background, correct circle
      embed and img is missing

      --
      regards
      Holger Jeromin
    Your message has been successfully submitted and would be delivered to recipients shortly.