Skip to content

Commit ea078b6

Browse files
author
Sylvain Galineau
committed
[css-animations] findRule/deleteRule: apply to the last rule with the specified key value (Bug 25034)
1 parent 51e6371 commit ea078b6

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

css-animations/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,8 @@ The <code>deleteRule</code> method</h4>
984984
The <dfn method for="CSSKeyFramesRule">deleteRule()</dfn> deletes the <a idl>CSSKeyframeRule</a>
985985
with the passed key. If a rule with this key does not exist, the method does nothing.
986986

987+
If multiple rules are specified for the passed key, the last one is deleted.
988+
987989
Parameters:
988990

989991
<dl>
@@ -1006,6 +1008,8 @@ The <code>findRule</code> method</h4>
10061008
The <dfn method for="CSSKeyFramesRule">findRule()</dfn> returns the rule with a key matching
10071009
the passed key. If no such rule exists, a null value is returned.
10081010

1011+
If multiple rules are specified for the passed key, the last one is returned.
1012+
10091013
Parameters:
10101014

10111015
<dl>

css-animations/Overview.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,8 @@ <h4 class="heading settled heading" data-level=6.3.4 id=interface-csskeyframesru
999999
<p> The <dfn class=idl-code data-dfn-for=CSSKeyFramesRule data-dfn-type=method data-export="" id=dom-csskeyframesrule-deleterule title=deleterule()>deleteRule()<a class=self-link href=#dom-csskeyframesrule-deleterule></a></dfn> deletes the <a data-link-type=idl href=#dom-csskeyframerule title=csskeyframerule>CSSKeyframeRule</a>
10001000
with the passed key. If a rule with this key does not exist, the method does nothing.
10011001

1002+
<p> If multiple rules are specified for the passed key, the last one is deleted.
1003+
10021004
<p> Parameters:
10031005

10041006
<dl>
@@ -1021,6 +1023,8 @@ <h4 class="heading settled heading" data-level=6.3.5 id=interface-csskeyframesru
10211023
<p> The <dfn class=idl-code data-dfn-for=CSSKeyFramesRule data-dfn-type=method data-export="" id=dom-csskeyframesrule-findrule title=findrule()>findRule()<a class=self-link href=#dom-csskeyframesrule-findrule></a></dfn> returns the rule with a key matching
10221024
the passed key. If no such rule exists, a null value is returned.
10231025

1026+
<p> If multiple rules are specified for the passed key, the last one is returned.
1027+
10241028
<p> Parameters:
10251029

10261030
<dl>

0 commit comments

Comments
 (0)