Closed Bug 296997 Opened 19 years ago Closed 17 years ago

getBBox does not properly account for element transformations

Categories

(Core :: SVG, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: readams, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8b2) Gecko/20050607 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8b2) Gecko/20050607 Firefox/1.0+

Test case to be attached.  getBBox in mozilla should, but doesn't, take into
account the transformations on an SVG element.

Reproducible: Always
Raised on www-svg: http://lists.w3.org/Archives/Public/www-svg/2005Jun/0022.html

No response yet (3+ weeks).
at the moment mozilla does however take into account transformations on an svg:g element!? Which makes things even more interesting
(In reply to comment #3)
> at the moment mozilla does however take into account transformations on an
> svg:g element!? Which makes things even more interesting
> 

Do you have a testcase you could attach?
(In reply to comment #4)
> (In reply to comment #3)
> > at the moment mozilla does however take into account transformations on an
> > svg:g element!? Which makes things even more interesting
> > 
> 
> Do you have a testcase you could attach?
> 

sorry my bad. I was seeing things, scratch that
The spec says getBBox "returns the tight bounding box in current user space (i.e., after application of the transform attribute, if any)". The bbox is always the same in user space regardless of any transform, since user space is established _after_ any such transform. It seems quite clear then that getBBox should not behave as you expect, but rather as Mozilla, Opera and others implement it now.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: