csswg-drafts
csswg-drafts copied to clipboard
[css-transforms-2] Syntax of individual transforms should reflect general CSS syntax
For example: Individual translate is only usable like so: translate: 0 0 10px
But translate
as an individual property should be a shorthand for
translate-x
, translate-y
, and translate-z
In my opinion, this would reflect the current CSS syntax with other properties, like overflow
, background-position
, scroll-snap-type
, and so on. Otherwise, it feels kind of inconsistent to me.
Or is there any technical reason that we cannot provide that syntax for individual transforms?
Spec: https://www.w3.org/TR/css-transforms-2/#individual-transforms