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
Copy file name to clipboardExpand all lines: css-transforms-1/Overview.bs
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,10 @@ When used in this specification, terms have the meanings assigned in this sectio
150
150
: <dfn export>user coordinate system</dfn>
151
151
: <dfn export>local coordinate system</dfn>
152
152
:: In general, a coordinate system defines locations and distances on the current canvas. The current local coordinate system (also user coordinate system) is the coordinate system that is currently active and which is used to define how coordinates and lengths are located and computed, respectively, on the current canvas.
153
-
The current user coordinate system has its origin at the top-left of a [=reference box=] specified by the 'transform-box' property. Percentage values are relative to the dimension of this reference box. One unit equals one CSS pixel.
153
+
The current user coordinate system has its origin at the top-left of a [=reference box=] specified by the 'transform-box' property.
154
+
Percentage values (except in scale functions) are relative to the dimension of this reference box.
155
+
One unit equals one CSS pixel.
156
+
In scale functions, a <<percentage>> is equivalent to a <<number>>, for example ''transform: scale(100%);'' is equivalent to ''transform: scale(1);''.
154
157
155
158
: <dfn>transformation matrix</dfn>
156
159
:: A matrix that defines the mathematical mapping from one coordinate system into another. It is computed from the values of the 'transform' and 'transform-origin' properties as described <a href="#transformation-matrix-computation">below</a>.
:: specifies a <a href="#ScaleDefined">2D scale</a> operation by the [sx,sy] scaling vector described by the 2 parameters. If the second parameter is not provided, it takes a value equal to the first. For example, scale(1, 1) would leave an element unchanged, while scale(2, 2) would cause it to appear twice as long in both the X and Y axes, or four times its typical geometric size.
for example ''scale: 100%;'' is equivalent to ''scale: 1;''.
630
632
----
631
633
632
634
All three properties accept
@@ -892,9 +894,9 @@ In the following <dfn export>3d transform functions</dfn>, a <<zero>> behaves th
892
894
:: 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