Re: [csswg-drafts] [css-transforms-2] Syntax of individual transforms should reflect general CSS syntax (#7646)

So I think there are two things we could reasonably do here:
* add `translate-x` and `translate-y` and `translate-z` properties, and make `translate` a shorthand for them
* add `scale-x` and `scale-y` and `scale-z` properties and make `scale` a shorthand for them

I'm curious how strong the use cases are for each of these things.  It sounds like separate translate properties are quite valuable.  Are there similarly strong use cases for the scale properties?

---

I think its less clear what to do about the rotate properties.  The earlier proposal above was to split into `rotate-angle` and `rotate-axis`, but it's not clear to me how strong the use cases for such a split are.

We can't make the existing `rotate` property a shorthand for `rotate-x`/`rotate-y`/`rotate-z` since it supports a syntax that allows rotations around arbitrary vectors, and non-axis-aligned rotations can't be mapped to separate `rotate-x`/`rotate-y`/`rotate-z` properties.  So if we wanted such properties I think we'd have to make them *additional* properties, and then define the order of operations across all *four* rotation properties.  I'd also note that the order of operations just between `rotate-x`/`rotate-y`/`rotate-z` is not obvious.

-- 
GitHub Notification of comment by dbaron
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7646#issuecomment-1743646633 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 2 October 2023 19:41:30 UTC