W3C home > Mailing lists > Public > public-svg-wg@w3.org > January to March 2009

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

From: Erik Dahlström <ed@opera.com>
Date: Fri, 30 Jan 2009 11:06:55 +0100
To: anthony.grasso@cisra.canon.com.au, "Doug Schepers" <schepers@w3.org>
Cc: "SVG Working Group WG" <public-svg-wg@w3.org>
Message-ID: <op.uokedtyagqiacl@gnorps.linkoping.osa>

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).


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:29:41 UTC