Skip to content

Commit 8cc7247

Browse files
committed
Added length and index getter to CSSTransformValue.
addresses w3c#358
1 parent 3e93aae commit 8cc7247

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

css-typed-om/Overview.bs

+8-3
Original file line numberDiff line numberDiff line change
@@ -1105,17 +1105,22 @@ which represent individual <<transform-function>> values.
11051105
[Constructor(optional sequence<CSSTransformComponent> transforms)]
11061106
interface CSSTransformValue : CSSStyleValue {
11071107
iterable<CSSTransformComponent>;
1108+
readonly attribute unsigned long length;
1109+
getter CSSTransformComponent (unsigned long index);
11081110
readonly attribute boolean is2D;
11091111
readonly attribute DOMMatrixReadOnly matrix;
11101112
};
11111113
</xmp>
11121114

1113-
Issue(358): This *should* be an Array-like,
1114-
pending proper resolution of [the GitHub issue](https://github.com/heycam/webidl/issues/291).
1115-
11161115
A {{CSSTransformValue}}’s [=values to iterate over=]
11171116
is a [=list=] of {{CSSTransformComponent}}s.
11181117

1118+
The <dfn attribute for=CSSTransformValue>length</dfn> attribute indicates how many {{CSSTransformComponent}} objects
1119+
in the [=values to iterate over=] [=list=].
1120+
1121+
The <dfn for=CSSTransformValue>indexed getter</dfn> retrieves the {{CSSTransformComponent}} object at the provided index
1122+
from the [=values to iterate over=] [=list=].
1123+
11191124
<div algorithm>
11201125
The <dfn constructor for=CSSTransformValue>CSSTransformValue(|transforms|)</dfn> constructor must,
11211126
when called,

0 commit comments

Comments
 (0)