mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Don't require index parameter in CSSGroupingRule
's insertRule()
(#35295)
Make it optional, defaulting to 0 if omitted, as defined in the spec: https://drafts.csswg.org/cssom/#ref-for-dom-cssgroupingrule-insertrule Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
07aa4ce093
commit
7b36f2beb3
3 changed files with 1 additions and 8 deletions
|
@ -6,7 +6,7 @@
|
||||||
[Abstract, Exposed=Window]
|
[Abstract, Exposed=Window]
|
||||||
interface CSSGroupingRule : CSSRule {
|
interface CSSGroupingRule : CSSRule {
|
||||||
[SameObject] readonly attribute CSSRuleList cssRules;
|
[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] undefined deleteRule(unsigned long index);
|
[Throws] undefined deleteRule(unsigned long index);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
[CSSGroupingRule-insertRule.html]
|
|
||||||
[index not specified]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
3
tests/wpt/meta/css/cssom/idlharness.html.ini
vendored
3
tests/wpt/meta/css/cssom/idlharness.html.ini
vendored
|
@ -215,9 +215,6 @@
|
||||||
[CSSRule interface: sheet.cssRules[2\].cssRules[0\] must inherit property "MARGIN_RULE" with the proper type]
|
[CSSRule interface: sheet.cssRules[2\].cssRules[0\] must inherit property "MARGIN_RULE" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[CSSGroupingRule interface: operation insertRule(CSSOMString, optional unsigned long)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[CSSImportRule interface: sheet.cssRules[0\] must inherit property "styleSheet" with the proper type]
|
[CSSImportRule interface: sheet.cssRules[0\] must inherit property "styleSheet" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue