W3C home > Mailing lists > Public > www-style@w3.org > September 2015

Re: [css-transforms] 'transform-box' defaults in svg

From: Erik Dahlström <erik@xn--dahlstrm-t4a.net>
Date: Tue, 29 Sep 2015 09:59:14 +0200
To: Erik Dahlström <erik@xn--dahlstrm-t4a.net>, "Amelia Bellamy-Royds" <amelia.bellamy.royds@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>, "public-fx@w3.org" <public-fx@w3.org>
Message-ID: <op.x5psg01gfwt8au@localhost.localdomain>
On Mon, 28 Sep 2015 21:44:16 +0200, Amelia Bellamy-Royds  
<amelia.bellamy.royds@gmail.com> wrote:

> The default `transform-box` for SVG needs to be `view-box` in order to be
> consistent with current (SVG 1.1) behavior.  SVG transformations are by
> default relative to 0,0 in the userSpace coordinate system.  So the SVG
> default transform-origin is 0,0 and the default transform-box must  
> somehow
> work out as equivalent to view-box.

Which is fine up to the point where 'transform-origin' is explicitly set  
to something else, since IMHO that implies that the author wanted a  
different behavior. I'd think that what most authors would like in this  
case, is for rotate and scale transforms to operate on the element in an  
intuitive way, and not to have to explicitly override two different  
properties (transform-origin AND transform-box) in order to get that.

Received on Tuesday, 29 September 2015 07:59:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:57 UTC