@@ -1989,15 +1989,15 @@ is a [=list=] of {{CSSTransformComponent}}s.
19891989 };
19901990
19911991 [Constructor(CSSNumericValue x, CSSNumericValue y, optional CSSNumericValue z)]
1992- interface CSSTranslation : CSSTransformComponent {
1992+ interface CSSTranslate : CSSTransformComponent {
19931993 attribute CSSNumericValue x;
19941994 attribute CSSNumericValue y;
19951995 attribute CSSNumericValue z;
19961996 };
19971997
19981998 [Constructor(CSSNumericValue angle),
19991999 Constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle)]
2000- interface CSSRotation : CSSTransformComponent {
2000+ interface CSSRotate : CSSTransformComponent {
20012001 attribute CSSNumberish x;
20022002 attribute CSSNumberish y;
20032003 attribute CSSNumberish z;
@@ -2037,7 +2037,7 @@ is a [=list=] of {{CSSTransformComponent}}s.
20372037 indicates whether the transform is 2D or 3D.
20382038 When it's `true`,
20392039 the attributes of the transform that are relevant to 3D transforms
2040- (such as the {{CSSTranslation /z|CSSTranslation .z}} attribute)
2040+ (such as the {{CSSTranslate /z|CSSTranslate .z}} attribute)
20412041 simply have no effect on the transform they represent.
20422042
20432043 Note: This affects the serialization of the object,
@@ -2066,54 +2066,54 @@ is a [=list=] of {{CSSTransformComponent}}s.
20662066 but also prevents "accidentally" flipping a 2D transform into becoming 3D.
20672067</details>
20682068
2069- <div algorithm="CSSTranslation ()">
2070- The <dfn constructor for=CSSTranslation>CSSTranslation (|x|, |y|, |z|)</dfn> constructor must,
2069+ <div algorithm="CSSTranslate ()">
2070+ The <dfn constructor for=CSSTranslate>CSSTranslate (|x|, |y|, |z|)</dfn> constructor must,
20712071 when invoked,
20722072 perform the following steps:
20732073
20742074 1. If |x|, |y|, or |z| (if passed)
20752075 don't match <<length-percentage>> ,
20762076 [=throw=] a {{TypeError}} .
20772077
2078- 2. Let |this| be a new {{CSSTranslation }} object,
2079- with its {{CSSTranslation /x}} and {{CSSTranslation /y}} internal slots
2078+ 2. Let |this| be a new {{CSSTranslate }} object,
2079+ with its {{CSSTranslate /x}} and {{CSSTranslate /y}} internal slots
20802080 set to |x| and |y|.
20812081
20822082 3. If |z| was passed,
2083- set |this|’s {{CSSTranslation /z}} internal slot
2083+ set |this|’s {{CSSTranslate /z}} internal slot
20842084 to |z|,
20852085 and set |this|’s {{CSSTransformComponent/is2D}} internal slot
20862086 to `false`.
20872087
20882088 4. If |z| was not passed,
2089- set |this|’s {{CSSTranslation /z}} internal slot
2089+ set |this|’s {{CSSTranslate /z}} internal slot
20902090 to [=create a CSSUnitValue from a string|new unit value=] of ''0px'' ,
20912091 and set |this|’s {{CSSTransformComponent/is2D}} internal slot
20922092 to `true`.
20932093
20942094 5. Return |this|.
20952095</div>
20962096
2097- <div algorithm="CSSRotation (angle)">
2098- The <dfn constructor for=CSSRotation>CSSRotation (|angle|)</dfn> constructor must,
2097+ <div algorithm="CSSRotate (angle)">
2098+ The <dfn constructor for=CSSRotate>CSSRotate (|angle|)</dfn> constructor must,
20992099 when invoked,
21002100 perform the following steps:
21012101
21022102 1. If |angle| doesn't match <<angle>> ,
21032103 [=throw=] a {{TypeError}} .
21042104
2105- 2. Return a new {{CSSRotation }}
2106- with its {{CSSRotation /angle}} internal slot
2105+ 2. Return a new {{CSSRotate }}
2106+ with its {{CSSRotate /angle}} internal slot
21072107 set to |angle|,
2108- its {{CSSRotation /x}} and {{CSSRotation /y}} internal slots
2108+ its {{CSSRotate /x}} and {{CSSRotate /y}} internal slots
21092109 set to [=create a CSSUnitValue from a string|new unit values=] of ''0'' ,
2110- its {{CSSRotation /z}} internal slot
2110+ its {{CSSRotate /z}} internal slot
21112111 set to a [=create a CSSUnitValue from a string|new unit value=] of ''1'' ,
21122112 and its {{CSSTransformComponent/is2D}} internal slot set to `true`.
21132113</div>
21142114
2115- <div algorithm="CSSRotation (x, y, z, angle)">
2116- The <dfn constructor for=CSSRotation>CSSRotation (|x|, |y|, |z|, |angle|)</dfn> constructor must,
2115+ <div algorithm="CSSRotate (x, y, z, angle)">
2116+ The <dfn constructor for=CSSRotate>CSSRotate (|x|, |y|, |z|, |angle|)</dfn> constructor must,
21172117 when invoked,
21182118 perform the following steps:
21192119
@@ -2127,10 +2127,10 @@ is a [=list=] of {{CSSTransformComponent}}s.
21272127 don't match <<number>> ,
21282128 [=throw=] a {{TypeError}} .
21292129
2130- 4. Return a new {{CSSRotation }}
2131- with its {{CSSRotation /angle}} internal slot
2130+ 4. Return a new {{CSSRotate }}
2131+ with its {{CSSRotate /angle}} internal slot
21322132 set to |angle|,
2133- its {{CSSRotation /x}} , {{CSSRotation /y}} , {{CSSRotation /z}} internal slots set to |x|, |y|, and |z|,
2133+ its {{CSSRotate /x}} , {{CSSRotate /y}} , {{CSSRotate /z}} internal slots set to |x|, |y|, and |z|,
21342134 and its {{CSSTransformComponent/is2D}} internal slot set to `false`.
21352135</div>
21362136
@@ -2230,7 +2230,7 @@ is a [=list=] of {{CSSTransformComponent}}s.
22302230<div class=note>
22312231 Each {{CSSTransformComponent}} can correspond to
22322232 one of a number of underlying transform functions.
2233- For example, a {{CSSTranslation }}
2233+ For example, a {{CSSTranslate }}
22342234 with an x value of ''10px''
22352235 and y & z values of ''0px'' could represent any of the following:
22362236
@@ -2737,8 +2737,8 @@ while CSS <<transform-function>> values become {{CSSTransformComponent}}s.
27372737 : ''translate3d()''
27382738 : ''translateZ()''
27392739 ::
2740- 1. Return a new {{CSSTranslation }} object,
2741- whose {{CSSTranslation /x}} , {{CSSTranslation /y}} , and {{CSSTranslation /z}} internal slots
2740+ 1. Return a new {{CSSTranslate }} object,
2741+ whose {{CSSTranslate /x}} , {{CSSTranslate /y}} , and {{CSSTranslate /z}} internal slots
27422742 are set to the [=normalize a numeric value|normalization=] of the specified x/y/z offsets,
27432743 or the [=normalize a numeric value|normalization=] of ''0px'' if not specified in |func|,
27442744 and whose {{CSSTransformComponent/is2D}} internal slot
@@ -2765,10 +2765,10 @@ while CSS <<transform-function>> values become {{CSSTransformComponent}}s.
27652765 : ''rotateY()''
27662766 : ''rotateZ()''
27672767 ::
2768- 1. Return a new {{CSSRotation }} object,
2769- whose {{CSSRotation /angle}} internal slot
2768+ 1. Return a new {{CSSRotate }} object,
2769+ whose {{CSSRotate /angle}} internal slot
27702770 is set to the [=normalize a numeric value|normalization=] of the specified angle,
2771- and whose {{CSSRotation /x}} , {{CSSRotation /y}} , and {{CSSRotation /z}} internal slots
2771+ and whose {{CSSRotate /x}} , {{CSSRotate /y}} , and {{CSSRotate /z}} internal slots
27722772 are set to the specified rotation axis coordinates,
27732773 or the implicit axis coordinates if not specified in |func|
27742774 and whose {{CSSTransformComponent/is2D}} internal slot
@@ -3198,7 +3198,7 @@ Computed {{CSSTransformValue}} objects {#computed-transformvalue-objects}
31983198-------------------------------------------------------------------------
31993199
32003200During computation, any {{CSSNumericValue}} objects referenced by a {{CSSTransformComponent}}
3201- (e.g. the {{CSSTranslation /x}} attribute of a {{CSSTranslation }} ) are
3201+ (e.g. the {{CSSTranslate /x}} attribute of a {{CSSTranslate }} ) are
32023202computed according to [[#computed-numericvalue-objects]] , but the
32033203{{CSSTransformValue}} object is otherwise as specified.
32043204
0 commit comments