Bug 94167 - SVG cropping elements with rotation.
Summary: SVG cropping elements with rotation.
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://dabblet.com/gist/3365305
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-15 18:39 PDT by Mark Brown
Modified: 2022-07-15 15:28 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Brown 2012-08-15 18:39:08 PDT
The dabblet shows a few variations of properties.

1) no transforms
2) rotation by 90deg works fine for square canvases because the bounding box is the same dimensions as the original.
3) css transforms on <svg> element completely whacked
4) SVG transforms are positioned correctly but crop the shapes incorrectly.

#3 is evident in Webkit / Safari but not Chrome.
#4 occurs in iOS webkit.
Comment 1 Dirk Schulze 2012-08-16 07:41:40 PDT
It seems that the CSS transformed SVG takes the origin around  0,0 instead of 50%,50%. Note that this happens initially on Safari as well. But when openening inspector it seems to be relayouted and looks correct then.

Couldn't make it work on chromium.
Comment 2 Brent Fulgham 2022-07-15 15:28:43 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.