W3C home > Mailing lists > Public > public-html@w3.org > March 2009

Re: Making it possible to use an <svg> root in text/html

From: Simon Pieters <simonp@opera.com>
Date: Thu, 12 Mar 2009 08:34:55 +0100
To: "Henri Sivonen" <hsivonen@iki.fi>, "Dana Lee Ling" <dleeling@comfsm.fm>
Cc: www-svg <www-svg@w3.org>, public-html <public-html@w3.org>
Message-ID: <op.uqn4ohknidj3kv@hp-a0a83fcd39d2>
+public-html (see http://www.w3.org/mid/624EEBFD-02CD-4782-8E87-42D963119D23@iki.fi )

On Mon, 09 Mar 2009 10:43:56 +0100, Henri Sivonen <hsivonen@iki.fi> wrote:

> There a some ad agency-created "high impact" marketing sites created in  
> Flash. These tend to put text views inside a vector graphics enclosure.

FWIW, I think they also tend to <embed> the Flash in a text/html page.

> To create similar sites with Open Web technologies, one might want to  
> have an <svg> root and then HTML content in a <foreignObject>.
> Having an SVG root has different behavior wrt. sizing the content to the  
> view port.

But it's easy enough to get the same visual result with an <html> root:

   <!DOCTYPE html>
    html { height:100% }
    body { height:100%; margin:0 }
    svg { display:block; width:100%; height:100% }
   <svg ...

So this use case doesn't seem too compelling for making <svg> as root in text/html.

Another use case might be to allow text/html syntax for SVG images that are referenced from HTML <img> or CSS 'content'. Such images tend to be static, however, so probably don't suffer so much from XML's fragileness.

Simon Pieters
Opera Software
Received on Thursday, 12 March 2009 07:36:22 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:43 UTC