W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2009

[whatwg] Load SVG via IMG element

From: ddailey <ddailey@zoominternet.net>
Date: Tue, 10 Feb 2009 21:19:41 -0500
Message-ID: <445745FE2DF348FAABDD2CE160AF06C4@disxgdg31szkx7>
In the message below, Ian Hickson wrote:
> It's not clear to me what I should say in HTML5 about this. <img> should
> just do whatever the image format says it should do, right?

I would think so, but I cc-ed Doug Schepers on this who might know of a 
reason not to.
I seem to recall some discussion of this somewhere, but if you didn't find 
it, Ian, then I doubt that I could.


btw, though off-topic here, the question from Vlad about browser support can 
be answered from Jeff Schiller's up-to-date info on implementations of the 
SVG spec at http://www.codedread.com/svg-support.php . In brief, all major 
browsers are implementing quite a bit of SVG natively now except for IE 
which still relies on a third party plugin. Opera does almost all of SVG1.1 
and WebKit is quite far along with SMIL (SVG animation).

----- Original Message ----- 
From: "Ian Hickson" <ian@hixie.ch>
To: "Vlad Alexander (xhtml.com)" <vlad.alexander at xhtml.com>; "Devi Web 
Development" <devi.webmaster at gmail.com>
Cc: <whatwg at whatwg.org>
Sent: Tuesday, February 10, 2009 8:15 PM
Subject: Re: [whatwg] Load SVG via IMG element

> On Thu, 4 Oct 2007, Vlad Alexander (xhtml.com) wrote:
>> I noticed that Opera 9.5 can load an SVG image via the IMG element. I
>> think this is a wonderful thing. Is there any specification on how this
>> should work? For example, I noticed that Opera, for some reason, does
>> not scale SVG images to fit the box created by the IMG element's width
>> and height attributes. Here is a test page:
>> http://xhtml.com/misc/svg-img.htm
>> Can someone please point me to any specs on loading SVG via IMG element?
> On Fri, 5 Oct 2007, Devi Web Development wrote:
>> My understanding is that SVG should not be scaled to fit given
>> dimensions because scaling information is provided in the SVG itself. I
>> don't know about the full status of SVG in browsers, but I know that
>> Firefox supports some, and the Adobe plug-in is common. A full test
>> suite is available at http://www.w3.org/Graphics/SVG/Test/ A
>> specification for embedding SVG in XHTML can be found at
>> http://www.w3.org/TR/XHTMLplusMathMLplusSVG/ and Mozilla provides some
>> documentation at
>> http://developer.mozilla.org/en/docs/SVG_In_HTML_Introduction
> It's not clear to me what I should say in HTML5 about this. <img> should
> just do whatever the image format says it should do, right?
> -- 
> Ian Hickson               U+1047E                )\._.,--....,'``.    fL
> http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
> Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 10 February 2009 18:19:41 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:09 UTC