Skip to content

Commit 09f859e

Browse files
committed
Define that the CSSNumberish attributes on transform components rectify on set (so they're always CSSUnitValues). Fixes #611.
1 parent 1a8a086 commit 09f859e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

css-typed-om/Overview.bs

+14
Original file line numberDiff line numberDiff line change
@@ -2191,6 +2191,13 @@ The <dfn for=CSSTransformValue>indexed getter</dfn> retrieves the transform comp
21912191
and its {{CSSTransformComponent/is2D}} internal slot set to `false`.
21922192
</div>
21932193

2194+
<div algorithm="CSSRotate.x" dfn-type=attribute dfn-for=CSSRotate>
2195+
The <dfn>x</dfn>, <dfn>y</dfn>, and <dfn>z</dfn> attributes must,
2196+
on setting to a new value |val|,
2197+
[=rectify a numberish value=] from |val|
2198+
and set the corresponding internal slot to the result of that.
2199+
</div>
2200+
21942201
<div algorithm="CSSScale()">
21952202
The <dfn constructor for=CSSScale>CSSScale(|x|, |y|, |z|)</dfn> constructor must,
21962203
when invoked,
@@ -2219,6 +2226,13 @@ The <dfn for=CSSTransformValue>indexed getter</dfn> retrieves the transform comp
22192226
6. Return |this|.
22202227
</div>
22212228

2229+
<div algorithm="CSSScale.x" dfn-type=attribute dfn-for=CSSScale>
2230+
The <dfn>x</dfn>, <dfn>y</dfn>, and <dfn>z</dfn> attributes must,
2231+
on setting to a new value |val|,
2232+
[=rectify a numberish value=] from |val|
2233+
and set the corresponding internal slot to the result of that.
2234+
</div>
2235+
22222236
<div algorithm="CSSSkew()">
22232237
The <dfn constructor for=CSSSkew>CSSSkew(|ax|, |ay|)</dfn> constructor must,
22242238
when invoked,

0 commit comments

Comments
 (0)