- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Mon, 6 Aug 2012 14:55:38 -0700
- To: Philip Rogers <pdr@google.com>
- Cc: www-svg@w3.org
On Mon, Aug 6, 2012 at 2:33 PM, Philip Rogers <pdr@google.com> wrote: > Hello www-svg! > > I'm looking for clarification on what getBBox() should return for this: > <rect height="100" width="0" /> > > I think the correct result is to return an SVGRect of width 0 and height > 100. This is due to the following sections of the spec: > [1] "A negative value is an error. A value of zero disables rendering of the > element." > [2] "Returns the tight bounding box in current user space ... on the > geometry of all contained graphics elements, exclusive of stroking, > clipping, masking and filter effects). Note that getBBox must return the > actual bounding box at the time the method was called, even in case the > element has not yet been rendered." > > Currently in browserland Opera and IE9 agree with me; Firefox, Chrome, and > Safari disagree and return a bounding box of size (0,0). > > This recently came up as part of > https://bugs.webkit.org/show_bug.cgi?id=93290 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. ~TJ
Received on Monday, 6 August 2012 21:56:26 UTC