Bug 133301 - SVG getBBox() does not work for transformed children
Summary: SVG getBBox() does not work for transformed children
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-27 01:59 PDT by kari.pihkala
Modified: 2014-07-12 23:09 PDT (History)
2 users (show)

See Also:


Attachments
Example SVG (819 bytes, image/svg+xml)
2014-05-27 01:59 PDT, kari.pihkala
no flags Details
Screenshot of Safari 7 and Firefox 29 rendering (25.59 KB, image/png)
2014-05-27 02:01 PDT, kari.pihkala
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description kari.pihkala 2014-05-27 01:59:48 PDT
Created attachment 232119 [details]
Example SVG

SVG getBBox() for a group element does not return the correct bounding box if its child element is rotated.

The attached example displays the bounding box as a blue rectangle for a rotated ellipse. There is a large gap between the bbox and the ellipse.

The result should be a blue rectangle tightly around the ellipse without any gaps.

Firefox 29 displays the correct behaviour.
Comment 1 kari.pihkala 2014-05-27 02:01:51 PDT
Created attachment 232120 [details]
Screenshot of Safari 7 and Firefox 29 rendering
Comment 2 Dirk Schulze 2014-07-12 23:09:46 PDT
This is due to our rectangular box calculation optimization for SVGRect, SVGCircle and SVGEllipse .... rects with rounded corners are likely affected as well.