Skip to content

Commit f253ec5

Browse files
committed
Optimistically switch CSSTransformValue to arraylike.
1 parent 2debc37 commit f253ec5

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

css-typed-om/Overview.bs

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,25 +1291,20 @@ They "contain" one or more {{CSSTransformComponent}}s,
12911291
which represent individual <<transform-function>> values.
12921292

12931293
<xmp class='idl'>
1294-
[Constructor(optional sequence<CSSTransformComponent> transforms)]
1295-
interface CSSTransformValue : CSSStyleValue {
1296-
iterable<CSSTransformComponent>;
1297-
readonly attribute unsigned long length;
1298-
getter CSSTransformComponent (unsigned long index);
1299-
readonly attribute boolean is2D;
1300-
readonly attribute DOMMatrixReadOnly matrix;
1301-
};
1294+
[Constructor(optional sequence<CSSTransformComponent> transforms)]
1295+
interface CSSTransformValue : CSSStyleValue {
1296+
/*arraylike<CSSTransformComponent>;*/
1297+
readonly attribute boolean is2D;
1298+
readonly attribute DOMMatrixReadOnly matrix;
1299+
};
13021300
</xmp>
13031301

1302+
Issue: Assuming the resolution of <a href="https://github.com/heycam/webidl/issues/345">WebIDL#345</a>
1303+
produces an "arraylike" declaration.
1304+
13041305
A {{CSSTransformValue}}’s [=values to iterate over=]
13051306
is a [=list=] of {{CSSTransformComponent}}s.
13061307

1307-
The <dfn attribute for=CSSTransformValue>length</dfn> attribute indicates how many {{CSSTransformComponent}} objects
1308-
in the [=values to iterate over=] [=list=].
1309-
1310-
The <dfn for=CSSTransformValue>indexed getter</dfn> retrieves the {{CSSTransformComponent}} object at the provided index
1311-
from the [=values to iterate over=] [=list=].
1312-
13131308
<div algorithm>
13141309
The <dfn constructor for=CSSTransformValue>CSSTransformValue(|transforms|)</dfn> constructor must,
13151310
when called,

0 commit comments

Comments
 (0)