W3C home > Mailing lists > Public > www-svg@w3.org > August 2012

Re: Clarification on getBBox() with shapes of zero width

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 6 Aug 2012 17:03:38 -0700
Message-ID: <CAAWBYDBsw_FzA1p2V9Cs0teHe23w5=weykbrmmvEvAFfHDt=OA@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: Philip Rogers <pdr@google.com>, "www-svg@w3.org" <www-svg@w3.org>
On Mon, Aug 6, 2012 at 4:55 PM, Dirk Schulze <dschulze@adobe.com> wrote:
> On Aug 6, 2012, at 2:55 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> Yes, (0, 100) should be the correct answer.  It would be great if we
>> could change to align with IE and Opera here, so that answer has a
>> majority and FF can change.
>
> Well, it depends on the interpretation of ""A negative value is an error. A value of zero disables rendering of the
> element". Actually it says it should not be rendered. So no renderer is created, like for display: none? I would interpret it as not rendering, no renderer, no bounding box. So FF and Webkit behavior sound reasonable before.
>
> We had bug reports for that on WebKit before and discussed it with people from Mozilla and they had the same understanding.

On the other hand, the spec states that the answer should be
independent of whether the element has been rendered yet or not.  It's
much more useful, I think, if the element doesn't have a discontinuity
here.

~TJ
Received on Tuesday, 7 August 2012 00:04:25 GMT

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