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

Re: bounding box of inline SVG

From: Alex Danilo <alex@abbra.com>
Date: Mon, 12 Sep 2011 15:51:24 +1000
Message-Id: <OXAERL.PYHFZCPO7ND@abbra.com>
To: Rik Cabanier <cabanier@gmail.com>
Cc: www-svg <www-svg@w3.org>
Hi Rik,

--Original Message--:
>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.

There have been many discussions about this over the years.
Lack of an outer <svg> defining width/height falls apart when the graphic
objects use percentages as units. e.g. <rect width="10%" ...


Received on Monday, 12 September 2011 05:52:03 UTC

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