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

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