Skip to content
Permalink
Browse files

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
  • Loading branch information...
KwanEsq committed Mar 13, 2019
1 parent 4314233 commit 948e169e514043eb6afb87e648af67ff08273d3e
@@ -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);
};

This file was deleted.

This file was deleted.

@@ -1,13 +1,3 @@
[insertRule-namespace-no-index.html]
[inserRule with namespace and omitted index argument]
expected: FAIL

[inserRule with namespace and omitted index argument should insert import]
expected: FAIL

[insertRule with namespace and omitted index argument]
expected: FAIL

[insertRule with namespace and omitted index argument should insert import]
expected: FAIL
expected: CRASH

This file was deleted.

@@ -243,9 +243,6 @@
[MediaList interface: calling deleteMedium(CSSOMString) on style_element.sheet.media with too few arguments must throw TypeError]
expected: FAIL
[CSSStyleSheet interface: operation insertRule(CSSOMString, unsigned long)]
expected: FAIL
[CSSStyleSheet interface: style_element.sheet must inherit property "ownerRule" with the proper type]
expected: FAIL

0 comments on commit 948e169

Please sign in to comment.
You can’t perform that action at this time.