Re: ISSUE-2208 (rotate-center-point): Consider allowing rotations to be relative to their bounding box center [SVG Core 2.0]

On Fri, 30 Jan 2009 04:58:13 +0100, Anthony Grasso <anthony.grasso@cisra.canon.com.au> wrote:

>
> Hi Cam and Doug,
>
> In the transforms module we were thinking of having an attribute/property called
> "transform-origin". The property would allow <x> <y> <z> to specified as a
> percentage of the bounding box or using a key word like is listed below ('left',
> 'right', 'center'). Additionally, User Space coordinates can be specified for
> <x> <y> <z>
>
> Not sure if this helpful for this issue though? or if can be merged into the module?

As long as the transform-origin doesn't inherit, and as long as it has compatible initial values then that would be a good choice. Otherwise we risk breaking old content.

Consider the example:

<rect transform="rotate(30)" x="100" y="100" width="100" height="100"/>

If the initial value for transform-origin is not (0,0) then that would look different in an old and in a new UA.

The currently suggested initial value is 50%,50% IIRC (at least in the CSS transformations proposal).

Cheers
/Erik

-- 
Erik Dahlstrom, Core Technology Developer, Opera Software
Co-Chair, W3C SVG Working Group
Personal blog: http://my.opera.com/macdev_ed

Received on Friday, 30 January 2009 10:05:43 UTC