aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/CSSStyleSheet.webidl
diff options
context:
space:
mode:
authorIan Moody <moz-ian@perix.co.uk>2019-03-13 17:01:52 +0000
committerIan Moody <moz-ian@perix.co.uk>2019-03-13 19:49:00 +0000
commit948e169e514043eb6afb87e648af67ff08273d3e (patch)
tree97942e9be4a9c8157950c410c121960d1536db6d /components/script/dom/webidls/CSSStyleSheet.webidl
parent431423388ee97fcbf23b5f7bbb6e8cf2c86740a5 (diff)
downloadservo-948e169e514043eb6afb87e648af67ff08273d3e.tar.gz
servo-948e169e514043eb6afb87e648af67ff08273d3e.zip
Update StyleSheet.insertRule WebIDL to make index optional.
Update wpt metadata to show the new passes. Add one test as crashing since currently passing an @import rule to insertRule leads to "Expected a stylesheet loader for @import" Fixes #23025
Diffstat (limited to 'components/script/dom/webidls/CSSStyleSheet.webidl')
-rw-r--r--components/script/dom/webidls/CSSStyleSheet.webidl2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/webidls/CSSStyleSheet.webidl b/components/script/dom/webidls/CSSStyleSheet.webidl
index 15d1fab4809..c09f14a3e8a 100644
--- a/components/script/dom/webidls/CSSStyleSheet.webidl
+++ b/components/script/dom/webidls/CSSStyleSheet.webidl
@@ -7,6 +7,6 @@
interface CSSStyleSheet : StyleSheet {
// readonly attribute CSSRule? ownerRule;
[Throws, SameObject] readonly attribute CSSRuleList cssRules;
- [Throws] unsigned long insertRule(DOMString rule, unsigned long index);
+ [Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
[Throws] void deleteRule(unsigned long index);
};