Skip to content

Commit 1b0835d

Browse files
darrnshntabatkins
authored andcommitted
Use indexed getters for CSSTransformComponent (#603)
1 parent 3bdd261 commit 1b0835d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

css-typed-om/Overview.bs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,15 +1956,15 @@ which represent individual <<transform-function>> values.
19561956
<xmp class='idl'>
19571957
[Constructor(optional sequence<CSSTransformComponent> transforms)]
19581958
interface CSSTransformValue : CSSStyleValue {
1959-
/*arraylike<CSSTransformComponent>;*/
1959+
iterable<CSSTransformComponent>;
1960+
readonly attribute unsigned long length;
1961+
getter CSSTransformComponent (unsigned long index);
1962+
19601963
readonly attribute boolean is2D;
19611964
DOMMatrix toMatrix();
19621965
};
19631966
</xmp>
19641967

1965-
Issue(487): Assuming the resolution of <a href="https://github.com/heycam/webidl/issues/345">WebIDL#345</a>
1966-
produces an "arraylike" declaration.
1967-
19681968
A {{CSSTransformValue}}’s [=values to iterate over=]
19691969
is a [=list=] of {{CSSTransformComponent}}s.
19701970

@@ -2014,6 +2014,9 @@ is a [=list=] of {{CSSTransformComponent}}s.
20142014
and with its internal [=matrix/is 2D=] flag set to |is2D|.
20152015
</div>
20162016

2017+
The <dfn attribute for=CSSTransformValue>length</dfn> attribute indicates how many transform components are contained within the {{CSSTransformValue}}.
2018+
2019+
The <dfn for=CSSTransformValue>indexed getter</dfn> retrieves the transform component at the provided index.
20172020

20182021
<xmp class=idl>
20192022
interface CSSTransformComponent {

0 commit comments

Comments
 (0)