Skip to content

Use indexed getters for CSSTransformComponent #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1956,15 +1956,15 @@ which represent individual <<transform-function>> values.
<xmp class='idl'>
[Constructor(optional sequence<CSSTransformComponent> transforms)]
interface CSSTransformValue : CSSStyleValue {
/*arraylike<CSSTransformComponent>;*/
iterable<CSSTransformComponent>;
readonly attribute unsigned long length;
getter CSSTransformComponent (unsigned long index);

readonly attribute boolean is2D;
DOMMatrix toMatrix();
};
</xmp>

Issue(487): Assuming the resolution of <a href="https://github.com/heycam/webidl/issues/345">WebIDL#345</a>
produces an "arraylike" declaration.

A {{CSSTransformValue}}’s [=values to iterate over=]
is a [=list=] of {{CSSTransformComponent}}s.

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

The <dfn attribute for=CSSTransformValue>length</dfn> attribute indicates how many transform components are contained within the {{CSSTransformValue}}.

The <dfn for=CSSTransformValue>indexed getter</dfn> retrieves the transform component at the provided index.

<xmp class=idl>
interface CSSTransformComponent {
Expand Down