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
:: 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.
794
797
795
798
Note: the rotation is clockwise as one looks from the end of the vector toward the origin.
:: specifies a <a href="#PerspectiveDefined">perspective projection matrix</a>. This matrix scales points in X and Y based on their Z value, scaling points with positive Z values away from the origin, and those with negative Z values towards the origin. Points on the z=0 plane are unchanged. The parameter represents the distance of the z=0 plane from the viewer. Lower values give a more flattened pyramid and therefore a more pronounced perspective effect. For example, a value of 1000px gives a moderate amount of foreshortening and a value of 200px gives an extreme amount. The value for depth must be greater than zero, otherwise the function is invalid.
Copy file name to clipboardExpand all lines: css-transforms/Overview.bs
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -591,7 +591,13 @@ The <{linearGradient}> element specifies the <{linearGradient/gradientTransform}
591
591
The Transform Functions {#transform-functions}
592
592
==============================================
593
593
594
-
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 'reference box. A percentage for vertical translations is relative to the height of the [=reference box=].
594
+
The value of the 'transform' property is a list of <dfn><transform-function></dfn>.
595
+
The set of allowed transform functions is given below.
596
+
In the following functions,
597
+
a <<zero>> behaves the same as ''0deg''
598
+
("unitless 0" angles are preserved for legacy compat).
599
+
A percentage for horizontal translations is relative to the width of the [=reference box=].
600
+
A percentage for vertical translations is relative to the height of the [=reference box=].
:: specifies a <a href="#RotateDefined">2D rotation</a> by the angle specified in the parameter about the origin of the element, as defined by the 'transform-origin' property. For example, ''rotate(90deg)'' would cause elements to appear rotated one-quarter of a turn in the clockwise direction.
:: specifies a <a href="#SkewDefined">2D skew</a> by [ax,ay] for X and Y. If the second parameter is not provided, it has a zero value.
626
632
<p class="note">Note that the behavior of ''skew()'' is different from multiplying ''skewX()'' with ''skewY()''. Implementations must support this function for compatibility with legacy content.
0 commit comments