W3C home > Mailing lists > Public > www-svg@w3.org > September 2011

Re: bounding box of inline SVG

From: Rik Cabanier <cabanier@gmail.com>
Date: Mon, 12 Sep 2011 15:40:39 -0700
Message-ID: <CAGN7qDCmJqKYaOZzcSterdJZ=y6SiqLLzoyj0zJeya+erweYWg@mail.gmail.com>
To: David Dailey <ddailey@zoominternet.net>
Cc: Alex Danilo <alex@abbra.com>, www-svg <www-svg@w3.org>
On Mon, Sep 12, 2011 at 2:24 PM, David Dailey <ddailey@zoominternet.net>wrote:

> ** **
>
> Rik writes:****
>
> ** **
>
> inline SVG is part of the HTML document so it could be calculated by
> looking at the size of its container.****
>
> Basically, it would just follow the same rules as regular HTML elements
> (including how percentages are calculated if an ancestor has a CSS
> transform)****
>
> ** **
>
> Thatís what Iíd expect to have happen.****
>
> ** **
>
> Later he continues:****
>
> I believe that in the future, the author will typically create the HTML and
> the inline SVG.****
>
> We shouldn't think about them as separate worlds. (I think there was
> consensus about this at the Seattle F2F.)****
>
> ** **
>
> And that is certainly consistent with the annoying agitation I began
> offering the HTML WG some years back [1,2,3]. Over time, Iíve come to think
> of it a bit differently though:****
>
> ** **
>
> ďThe author will typically create the SVG with little bursts of occasional
> HTML as needed (e.g., tables, form elements and APIís). ď****
>
> ** **
>
> After all, HTML is a far less powerful environment than SVG and it behooves
> us to keep that in mind as planning for their coexistence takes place. HTML
> is the noisy little cousin that demands a lot of attention but ultimately
> accomplishes much less. As a medium to enable the expression of human
> thought, SVG is far richer than HTML, stemming from its primary metaphor and
> from the mapping of that metaphor onto the cerebrum. ****
>
>
>
I hadn't thought about using HTML in SVG.
It seems that you would need a width and height in that case since you want
to reserve a space the the HTML renders into.

At the F2F there was a proposal to get rid of the foreignobject tag if you
want to insert HTML.

Rik
Received on Monday, 12 September 2011 22:41:07 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:49 GMT