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

-www-archive
+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>
   <title>...</title>
   <style>
    html { height:100% }
    body { height:100%; margin:0 }
    svg { display:block; width:100%; height:100% }
   </style>
   <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