You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for example ''scale: 100%;'' is equivalent to ''scale: 1;''.
672
+
Numbers are used during serialization of specified and computed values.
673
+
670
674
----
671
675
672
676
All three properties accept
@@ -910,6 +914,19 @@ The Transform Functions {#transform-functions}
910
914
=======================
911
915
912
916
The value of the 'transform' property is a list of <dfn><transform-function></dfn>. The set of allowed transform functions is given below. Wherever <<angle>> is used in this specification, a <<number>> that is equal to zero is also allowed, which is treated the same as an angle of zero degrees. A percentage for horizontal translations is relative to the width of the <a>reference box</a>. A percentage for vertical translations is relative to the height of the <a>reference box</a>.
917
+
A percentage in a scale function is equivalent to a number, and serializes as a number in specified values.
918
+
For example, ''scale3d(50%, 100%, 150%)'' serializes as ''scale3d(0.5, 1, 1.5)''.
3D Transform Functions {#three-d-transform-functions}
915
932
----------------------
@@ -924,9 +941,9 @@ In the following <dfn export>3d transform functions</dfn>, a <<zero>> behaves th
924
941
:: specifies a <a href="#Translate3dDefined">3D translation</a> by the vector [tx,ty,tz], with tx, ty and tz being the first, second and third translation-value parameters respectively.
:: specifies a <a href="#Rotate3dDefined">3D rotation</a> by the angle specified in last parameter about the [x,y,z] direction vector described by the first three parameters. A direction vector that cannot be normalized, such as [0,0,0], will cause the rotation to not be applied.
0 commit comments