You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-animations/Overview.bs
+14-16Lines changed: 14 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -934,8 +934,8 @@ IDL Definition</h4>
934
934
readonly attribute CSSRuleList cssRules;
935
935
936
936
void appendRule(DOMString rule);
937
-
void deleteRule(DOMString key);
938
-
CSSKeyframeRule? findRule(DOMString key);
937
+
void deleteRule(DOMString select);
938
+
CSSKeyframeRule? findRule(DOMString select);
939
939
};
940
940
</pre>
941
941
@@ -982,20 +982,19 @@ The <code>appendRule</code> method</h4>
982
982
<h4 id="interface-csskeyframesrule-deleterule">
983
983
The <code>deleteRule</code> method</h4>
984
984
985
-
The <dfn method for="CSSKeyframesRule">deleteRule()</dfn> deletes the <a idl>CSSKeyframeRule</a>
986
-
with the passed key. If a rule with this key does not exist, the method does nothing.
987
-
988
-
If multiple rules are specified for the passed key, the last one is deleted.
985
+
The <dfn method for="CSSKeyframesRule">deleteRule()</dfn> deletes the
986
+
last declared <a idl>CSSKeyframeRule</a> matching the specified keyframe selector.
987
+
If no matching rule exists, the method does nothing.
989
988
990
989
Parameters:
991
990
992
991
<dl>
993
992
994
-
<dt><dfn argument for="CSSKeyframesRule/deleteRule()">key</dfn> of type <a interface>DOMString</a>
993
+
<dt><dfn argument for="CSSKeyframesRule/deleteRule()">select</dfn> of type <a interface>DOMString</a>
995
994
<dd>
996
-
The keyframe selector of the rule to be deleted: a comma-separated list of either percentage values between 0% and 100% or one of the keywords ''from'' or ''to'', which resolve to 0% and 100%, respectively.
995
+
The keyframe selector of the rule to be deleted: a comma-separated list of percentage values between 0% and 100% or the keywords ''from'' or ''to'' which resolve to 0% and 100%, respectively.
997
996
998
-
The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to white-space.
997
+
The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to whitespace around the values in the list.
999
998
</dl>
1000
999
1001
1000
No Return Value
@@ -1006,19 +1005,18 @@ The <code>deleteRule</code> method</h4>
1006
1005
<h4 id="interface-csskeyframesrule-findrule">
1007
1006
The <code>findRule</code> method</h4>
1008
1007
1009
-
The <dfn method for="CSSKeyframesRule">findRule()</dfn> returns the rule with a key matching
1010
-
the passed key. If no such rule exists, a null value is returned.
1011
-
1012
-
If multiple rules are specified for the passed key, the last one is returned.
1008
+
The <dfn method for="CSSKeyframesRule">findRule()</dfn> returns the
1009
+
last declared <a idl>CSSKeyframeRule</a> matching the specified keyframe selector.
1010
+
If no matching rule exists, the method does nothing.
1013
1011
1014
1012
Parameters:
1015
1013
1016
1014
<dl>
1017
-
<dt><dfn argument for="CSSKeyframesRule/findRule()">key</dfn> of type <a interface>DOMString</a>
1015
+
<dt><dfn argument for="CSSKeyframesRule/findRule()">select</dfn> of type <a interface>DOMString</a>
1018
1016
<dd>
1019
-
The keyframe selector of the rule to be retrieved: a comma-separated list of either percentage values between 0% and 100% or one of the keywords ''from'' or ''to'', which resolve to 0% and 100%, respectively.
1017
+
The keyframe selector of the rule to be deleted: a comma-separated list of percentage values between 0% and 100% or the keywords ''from'' or ''to'' which resolve to 0% and 100%, respectively.
1020
1018
1021
-
The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to white-space.
1019
+
The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to whitespace around the values in the list.
The <code>deleteRule</code> method</span><aclass=self-linkhref=#interface-csskeyframesrule-deleterule></a></h4>
999
999
1000
-
<p> The <dfnclass=idl-codedata-dfn-for=CSSKeyframesRuledata-dfn-type=methoddata-export="" id=dom-csskeyframesrule-deleteruletitle=deleterule()>deleteRule()<aclass=self-linkhref=#dom-csskeyframesrule-deleterule></a></dfn> deletes the <adata-link-type=idlhref=#dom-csskeyframeruletitle=csskeyframerule>CSSKeyframeRule</a>
1001
-
with the passed key. If a rule with this key does not exist, the method does nothing.
1002
-
1003
-
<p> If multiple rules are specified for the passed key, the last one is deleted.
1000
+
<p> The <dfnclass=idl-codedata-dfn-for=CSSKeyframesRuledata-dfn-type=methoddata-export="" id=dom-csskeyframesrule-deleteruletitle=deleterule()>deleteRule()<aclass=self-linkhref=#dom-csskeyframesrule-deleterule></a></dfn> deletes the
1001
+
last declared <adata-link-type=idlhref=#dom-csskeyframeruletitle=csskeyframerule>CSSKeyframeRule</a> matching the specified keyframe selector.
1002
+
If no matching rule exists, the method does nothing.
1004
1003
1005
1004
<p> Parameters:
1006
1005
1007
1006
<dl>
1008
1007
1009
-
<dt><dfnclass=idl-codedata-dfn-for=CSSKeyframesRule/deleteRule()data-dfn-type=argumentdata-export="" id=dom-csskeyframesruledeleterule-key>key<aclass=self-linkhref=#dom-csskeyframesruledeleterule-key></a></dfn> of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
1008
+
<dt><dfnclass=idl-codedata-dfn-for=CSSKeyframesRule/deleteRule()data-dfn-type=argumentdata-export="" id=dom-csskeyframesruledeleterule-select>select<aclass=self-linkhref=#dom-csskeyframesruledeleterule-select></a></dfn> of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
1010
1009
<dd>
1011
-
The keyframe selector of the rule to be deleted: a comma-separated list of either percentage values between 0% and 100% or one of the keywords <spanclass=cssdata-link-type=maybetitle=from>from</span> or <spanclass=cssdata-link-type=maybetitle=to>to</span>, which resolve to 0% and 100%, respectively.
1010
+
The keyframe selector of the rule to be deleted: a comma-separated list of percentage values between 0% and 100% or the keywords <spanclass=cssdata-link-type=maybetitle=from>from</span> or <spanclass=cssdata-link-type=maybetitle=to>to</span> which resolve to 0% and 100%, respectively.
1012
1011
1013
-
<p> The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to white-space.
1012
+
<p> The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to whitespace around the values in the list.
The <code>findRule</code> method</span><aclass=self-linkhref=#interface-csskeyframesrule-findrule></a></h4>
1023
1022
1024
-
<p> The <dfnclass=idl-codedata-dfn-for=CSSKeyframesRuledata-dfn-type=methoddata-export="" id=dom-csskeyframesrule-findruletitle=findrule()>findRule()<aclass=self-linkhref=#dom-csskeyframesrule-findrule></a></dfn> returns the rule with a key matching
1025
-
the passed key. If no such rule exists, a null value is returned.
1026
-
1027
-
<p> If multiple rules are specified for the passed key, the last one is returned.
1023
+
<p> The <dfnclass=idl-codedata-dfn-for=CSSKeyframesRuledata-dfn-type=methoddata-export="" id=dom-csskeyframesrule-findruletitle=findrule()>findRule()<aclass=self-linkhref=#dom-csskeyframesrule-findrule></a></dfn> returns the
1024
+
last declared <adata-link-type=idlhref=#dom-csskeyframeruletitle=csskeyframerule>CSSKeyframeRule</a> matching the specified keyframe selector.
1025
+
If no matching rule exists, the method does nothing.
1028
1026
1029
1027
<p> Parameters:
1030
1028
1031
1029
<dl>
1032
-
<dt><dfnclass=idl-codedata-dfn-for=CSSKeyframesRule/findRule()data-dfn-type=argumentdata-export="" id=dom-csskeyframesrulefindrule-key>key<aclass=self-linkhref=#dom-csskeyframesrulefindrule-key></a></dfn> of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
1030
+
<dt><dfnclass=idl-codedata-dfn-for=CSSKeyframesRule/findRule()data-dfn-type=argumentdata-export="" id=dom-csskeyframesrulefindrule-select>select<aclass=self-linkhref=#dom-csskeyframesrulefindrule-select></a></dfn> of type <aclass=idl-codedata-link-type=interfacetitle=domstring>DOMString</a>
1033
1031
<dd>
1034
-
The keyframe selector of the rule to be retrieved: a comma-separated list of either percentage values between 0% and 100% or one of the keywords <spanclass=cssdata-link-type=maybetitle=from>from</span> or <spanclass=cssdata-link-type=maybetitle=to>to</span>, which resolve to 0% and 100%, respectively.
1032
+
The keyframe selector of the rule to be deleted: a comma-separated list of percentage values between 0% and 100% or the keywords <spanclass=cssdata-link-type=maybetitle=from>from</span> or <spanclass=cssdata-link-type=maybetitle=to>to</span> which resolve to 0% and 100%, respectively.
1035
1033
1036
-
<p> The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to white-space.
1034
+
<p> The number and order of the values in the specified keyframe selector must match those of the targeted keyframe rule(s). The match is not sensitive to whitespace around the values in the list.
0 commit comments