Skip to content

Commit 7949d41

Browse files
committed
[cssom] Make index argument optional in insertRule
Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=27384
1 parent 9158148 commit 7949d41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cssom/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ The {{CSSStyleSheet}} interface represents a <a>CSS style sheet</a>.
842842
interface CSSStyleSheet : StyleSheet {
843843
readonly attribute CSSRule? ownerRule;
844844
[SameObject] readonly attribute CSSRuleList cssRules;
845-
unsigned long insertRule(DOMString rule, unsigned long index);
845+
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
846846
void deleteRule(unsigned long index);
847847
};
848848
</pre>
@@ -1673,7 +1673,7 @@ The <code>CSSGroupingRule</code> interface represents an at-rule that contains o
16731673
<pre class=idl>
16741674
interface CSSGroupingRule : CSSRule {
16751675
[SameObject] readonly attribute CSSRuleList cssRules;
1676-
unsigned long insertRule(DOMString rule, unsigned long index);
1676+
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
16771677
void deleteRule(unsigned long index);
16781678
};
16791679
</pre>

0 commit comments

Comments
 (0)