We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
https://drafts.csswg.org/css-transforms-2/#individual-transforms
The translate property accepts 1-3 values, each specifying a translation against one axis, in the order X, Y, then Z.
Now we have translateX(), translateY(), translateZ(), does that mean we should also have:
translateX()
translateY()
translateZ()
translate-x: 16px
translate: 16px
translate-y: 16px
translate: 0px 16px
translate-z: 16px
translate: 0px 0px 16px
Just like inset can be specified by top, left, right, bottom.
inset
top
left
right
bottom
The scale property accepts 1-3 values, each specifying a scale along one axis, in order X, Y, then Z.
Now we have scaleX(), scaleY(), scaleZ() does that mean we should also have:
scaleX()
scaleY()
scaleZ()
scale-x: 2
scale: 2 1
scale-y: 2
scale: 1 2
scale-z: 2
scale: 1 1 2
The rotate property accepts an angle to rotate an element, and optionally an axis to rotate it around.
Now we have rotateX(), rotateY(), rotateZ() does that mean we should also have:
rotateX()
rotateY()
rotateZ()
rotate-x: 30deg
rotate: x 30deg
rotate-y: 30deg
rotate: y 30deg
rotate-z: 30deg
rotate: z 30deg
In addition, rotate has similar formats to translate and scale, providing the rotate: x 30deg syntax seems inconsistent.
rotate
translate
scale
The text was updated successfully, but these errors were encountered:
scale:
rotate:
transform:
See #7646.
Sorry, something went wrong.
No branches or pull requests
https://drafts.csswg.org/css-transforms-2/#individual-transforms
translate
The translate property accepts 1-3 values, each specifying a translation against one axis, in the order X, Y, then Z.
Now we have
translateX()
,translateY()
,translateZ()
, does that mean we should also have:translate-x: 16px
instead of usingtranslate: 16px
translate-y: 16px
instead of usingtranslate: 0px 16px
translate-z: 16px
instead of usingtranslate: 0px 0px 16px
Just like
inset
can be specified bytop
,left
,right
,bottom
.scale
The scale property accepts 1-3 values, each specifying a scale along one axis, in order X, Y, then Z.
Now we have
scaleX()
,scaleY()
,scaleZ()
does that mean we should also have:scale-x: 2
instead of usingscale: 2 1
scale-y: 2
instead of usingscale: 1 2
scale-z: 2
instead of usingscale: 1 1 2
rotate
The rotate property accepts an angle to rotate an element, and optionally an axis to rotate it around.
Now we have
rotateX()
,rotateY()
,rotateZ()
does that mean we should also have:rotate-x: 30deg
instead of usingrotate: x 30deg
rotate-y: 30deg
instead of usingrotate: y 30deg
rotate-z: 30deg
instead of usingrotate: z 30deg
In addition,
rotate
has similar formats totranslate
andscale
, providing therotate: x 30deg
syntax seems inconsistent.The text was updated successfully, but these errors were encountered: