W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

Re: [csswg-drafts] [css-transforms] Named rotation axis

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Tue, 06 Feb 2018 03:05:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-363295845-1517886313-sysbot+gh@w3.org>
I agree that named axes would be preferable to the vector format for most simple cases. I would recommend using the x/y/z naming, because it is short and because it is consistent with the `rotateX`, `rotateY`, and `rotateZ` functions.

I think it would also be helpful to distinguish between a 3D rotation around the Z axis and a 2D rotation in the plane.  If you're already in 3D transformation mode, the effects are identical, but 2D versus 3D transformations have different effects in browser/GPU implementations, and in the parts of the spec that relate to SVG.

In other words, my ideal syntax would be something like:

rotate: none | [ 2d | x | y | z | <number>{3} ]? <angle> 

with `2d` as the default if an axis is not specified.

(Also, I'm not sure on how to write the grammar, but the order of angle and axis parameters should be interchangeable, assuming we aren't allowing unitless 0 for angles.)

GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2130#issuecomment-363295845 using your GitHub account
Received on Tuesday, 6 February 2018 03:05:15 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC