Skip to content

Commit 354c40d

Browse files
committed
[css-animations-1] Define indexed property getter for CSSKeyframesRule
1 parent d618d51 commit 354c40d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

css-animations-1/Overview.bs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,9 @@ IDL Definition</h4>
11171117
interface CSSKeyframesRule : CSSRule {
11181118
attribute CSSOMString name;
11191119
readonly attribute CSSRuleList cssRules;
1120+
readonly attribute unsigned long length;
11201121

1122+
getter CSSKeyframeRule (unsigned long index);
11211123
undefined appendRule(CSSOMString rule);
11221124
undefined deleteRule(CSSOMString select);
11231125
CSSKeyframeRule? findRule(CSSOMString select);
@@ -1136,8 +1138,39 @@ Attributes</h4>
11361138
<dt><dfn>cssRules</dfn>
11371139
<dd>
11381140
This attribute gives access to the keyframes in the list.
1141+
1142+
<dt><dfn>length</dfn>
1143+
<dd>
1144+
This attribute is the number of keyframes in the list.
1145+
</dl>
1146+
1147+
<h4 id="interface-csskeyframesrule-indexed-property-getter">
1148+
The indexed property getter</h4>
1149+
1150+
The <dfn method for="CSSKeyframesRule" lt="__getter__(index)">indexed property
1151+
getter</dfn> returns the {{CSSKeyframeRule}} from the list of keyframes
1152+
at the indicated position.
1153+
1154+
Parameters:
1155+
1156+
<dl>
1157+
1158+
<dt><dfn argument for="CSSKeyframesRule/__getter__(index)">index</dfn>
1159+
of type {{unsigned long}}
1160+
<dd>
1161+
The zero-based index of the rule to return.
1162+
</dl>
1163+
1164+
Return Value:
1165+
1166+
<dl>
1167+
<dt>{{CSSKeyframeRule}}
1168+
<dd>
1169+
The found rule or {{undefined}} if there is no rule at the specific index.
11391170
</dl>
11401171

1172+
No Exceptions
1173+
11411174
<h4 id="interface-csskeyframesrule-appendrule">
11421175
The <code>appendRule</code> method</h4>
11431176

0 commit comments

Comments
 (0)