-
Notifications
You must be signed in to change notification settings - Fork 717
[css-transforms-2] Syntax of "rotate" judged unintuitive (and not interoperable anyway) #1269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Alternately, have longhands rotate-axis and rotate-angle and then it's more obvious? |
Then you have |
I like it |
Hmmm... this issue overlaps with #2130, which is also discussing the syntax of the As I mentioned over there, I think that the order of angle vs axis should be flexible, so long as unitless 0 is not allowed for the angle (as agreed in #2116). I personally don't think the function notation is necessary for grouping the axis vector values, but I don't have a problem with it. It is neater than any other solution. Splitting the property into longhands is probably something that could wait until we have more real-world feedback. It might turn out that what authors really want are separate rotate-x, rotate-y, rotate-z properties, or something like that. |
"I don't know what these three numbers do" seems weird, given the existence of Maybe just nobody uses |
This issue should be addressed by the discussion the WG just had, recorded in #2130. |
Yup, thus closing. |
It seems Chrome doesn't support the syntax of
rotate: 0 0 1 45deg
. Interestingly, Edge does not either but supportsrotate: 45deg 0 0 1
instead.Discussing with devs on Twitter, devs thought the current syntax is not clear:
Maybe we should change the syntax to make the grouping clearer, and also allow to reorder. An idea would be
rotate: 45deg axis(0 0 1)
.Thoughts?
The text was updated successfully, but these errors were encountered: