@@ -1989,15 +1989,15 @@ is a [=list=] of {{CSSTransformComponent}}s.
1989
1989
};
1990
1990
1991
1991
[Constructor(CSSNumericValue x, CSSNumericValue y, optional CSSNumericValue z)]
1992
- interface CSSTranslation : CSSTransformComponent {
1992
+ interface CSSTranslate : CSSTransformComponent {
1993
1993
attribute CSSNumericValue x;
1994
1994
attribute CSSNumericValue y;
1995
1995
attribute CSSNumericValue z;
1996
1996
};
1997
1997
1998
1998
[Constructor(CSSNumericValue angle),
1999
1999
Constructor(CSSNumberish x, CSSNumberish y, CSSNumberish z, CSSNumericValue angle)]
2000
- interface CSSRotation : CSSTransformComponent {
2000
+ interface CSSRotate : CSSTransformComponent {
2001
2001
attribute CSSNumberish x;
2002
2002
attribute CSSNumberish y;
2003
2003
attribute CSSNumberish z;
@@ -2037,7 +2037,7 @@ is a [=list=] of {{CSSTransformComponent}}s.
2037
2037
indicates whether the transform is 2D or 3D.
2038
2038
When it's `true`,
2039
2039
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)
2041
2041
simply have no effect on the transform they represent.
2042
2042
2043
2043
Note: This affects the serialization of the object,
@@ -2066,54 +2066,54 @@ is a [=list=] of {{CSSTransformComponent}}s.
2066
2066
but also prevents "accidentally" flipping a 2D transform into becoming 3D.
2067
2067
</details>
2068
2068
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,
2071
2071
when invoked,
2072
2072
perform the following steps:
2073
2073
2074
2074
1. If |x|, |y|, or |z| (if passed)
2075
2075
don't match <<length-percentage>> ,
2076
2076
[=throw=] a {{TypeError}} .
2077
2077
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
2080
2080
set to |x| and |y|.
2081
2081
2082
2082
3. If |z| was passed,
2083
- set |this|’s {{CSSTranslation /z}} internal slot
2083
+ set |this|’s {{CSSTranslate /z}} internal slot
2084
2084
to |z|,
2085
2085
and set |this|’s {{CSSTransformComponent/is2D}} internal slot
2086
2086
to `false`.
2087
2087
2088
2088
4. If |z| was not passed,
2089
- set |this|’s {{CSSTranslation /z}} internal slot
2089
+ set |this|’s {{CSSTranslate /z}} internal slot
2090
2090
to [=create a CSSUnitValue from a string|new unit value=] of ''0px'' ,
2091
2091
and set |this|’s {{CSSTransformComponent/is2D}} internal slot
2092
2092
to `true`.
2093
2093
2094
2094
5. Return |this|.
2095
2095
</div>
2096
2096
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,
2099
2099
when invoked,
2100
2100
perform the following steps:
2101
2101
2102
2102
1. If |angle| doesn't match <<angle>> ,
2103
2103
[=throw=] a {{TypeError}} .
2104
2104
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
2107
2107
set to |angle|,
2108
- its {{CSSRotation /x}} and {{CSSRotation /y}} internal slots
2108
+ its {{CSSRotate /x}} and {{CSSRotate /y}} internal slots
2109
2109
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
2111
2111
set to a [=create a CSSUnitValue from a string|new unit value=] of ''1'' ,
2112
2112
and its {{CSSTransformComponent/is2D}} internal slot set to `true`.
2113
2113
</div>
2114
2114
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,
2117
2117
when invoked,
2118
2118
perform the following steps:
2119
2119
@@ -2127,10 +2127,10 @@ is a [=list=] of {{CSSTransformComponent}}s.
2127
2127
don't match <<number>> ,
2128
2128
[=throw=] a {{TypeError}} .
2129
2129
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
2132
2132
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|,
2134
2134
and its {{CSSTransformComponent/is2D}} internal slot set to `false`.
2135
2135
</div>
2136
2136
@@ -2230,7 +2230,7 @@ is a [=list=] of {{CSSTransformComponent}}s.
2230
2230
<div class=note>
2231
2231
Each {{CSSTransformComponent}} can correspond to
2232
2232
one of a number of underlying transform functions.
2233
- For example, a {{CSSTranslation }}
2233
+ For example, a {{CSSTranslate }}
2234
2234
with an x value of ''10px''
2235
2235
and y & z values of ''0px'' could represent any of the following:
2236
2236
@@ -2737,8 +2737,8 @@ while CSS <<transform-function>> values become {{CSSTransformComponent}}s.
2737
2737
: ''translate3d()''
2738
2738
: ''translateZ()''
2739
2739
::
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
2742
2742
are set to the [=normalize a numeric value|normalization=] of the specified x/y/z offsets,
2743
2743
or the [=normalize a numeric value|normalization=] of ''0px'' if not specified in |func|,
2744
2744
and whose {{CSSTransformComponent/is2D}} internal slot
@@ -2765,10 +2765,10 @@ while CSS <<transform-function>> values become {{CSSTransformComponent}}s.
2765
2765
: ''rotateY()''
2766
2766
: ''rotateZ()''
2767
2767
::
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
2770
2770
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
2772
2772
are set to the specified rotation axis coordinates,
2773
2773
or the implicit axis coordinates if not specified in |func|
2774
2774
and whose {{CSSTransformComponent/is2D}} internal slot
@@ -3198,7 +3198,7 @@ Computed {{CSSTransformValue}} objects {#computed-transformvalue-objects}
3198
3198
-------------------------------------------------------------------------
3199
3199
3200
3200
During 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
3202
3202
computed according to [[#computed-numericvalue-objects]] , but the
3203
3203
{{CSSTransformValue}} object is otherwise as specified.
3204
3204
0 commit comments