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

Re: bounding box of inline SVG

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 12 Sep 2011 01:50:14 -0700
Message-ID: <CAAWBYDAtmJoG-VPunZ+9spPQ_1robgHNL6KCC32PPP3S7d1NCw@mail.gmail.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: www-svg <www-svg@w3.org>
On Sun, Sep 11, 2011 at 9:45 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> All,
> If you use inline SVG, you still need to define the width and height of each
> block of inline SVG.
> Could the spec be changed so that this is calculated automatically?
> The browser sees all the graphics in the DOM, so it could do this with not
> too much effort. This would make it easier to draw and manipulate inline SVG
> elements since you won't have to worry about the bbox and viewbox.
> I seem to remember a discussion on this, but I can't find it any more.

I know it was discussed at the last F2F, definitely.  Shepazu
suggested that it could be the default sizing rule for inline SVG.

On Sun, Sep 11, 2011 at 10:51 PM, Alex Danilo <alex@abbra.com> wrote:
> Lack of an outer <svg> defining width/height falls apart when the graphic
> objects use percentages as units. e.g. <rect width="10%" ...

They could be calculated against the "default" 300x150 viewport.

Received on Monday, 12 September 2011 08:51:02 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:26 UTC