From 2121bacd7cd981af2bed522b334b2e500cd0a569 Mon Sep 17 00:00:00 2001 From: Darren Shen Date: Tue, 30 Jan 2018 09:17:01 +1100 Subject: [PATCH] Use indexed getters for CSSTransformComponent --- css-typed-om/Overview.bs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index bb2daadd..cd696ca0 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -1956,15 +1956,15 @@ which represent individual <> values. [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(); }; -Issue(487): Assuming the resolution of WebIDL#345 -produces an "arraylike" declaration. - A {{CSSTransformValue}}’s [=values to iterate over=] is a [=list=] of {{CSSTransformComponent}}s. @@ -2014,6 +2014,9 @@ is a [=list=] of {{CSSTransformComponent}}s. and with its internal [=matrix/is 2D=] flag set to |is2D|. +The length attribute indicates how many transform components are contained within the {{CSSTransformValue}}. + +The indexed getter retrieves the transform component at the provided index. interface CSSTransformComponent {