mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibWeb: Remove first rule if no argument is given for remove_rule()
While this isn't explicitly mentioned in the specification, there is a WPT test that checks for this behavior.
This commit is contained in:
parent
3ea318ca8b
commit
1d825f17c0
5 changed files with 57 additions and 4 deletions
|
@ -19,7 +19,7 @@ interface CSSStyleSheet : StyleSheet {
|
|||
// https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members
|
||||
[SameObject, ImplementedAs=css_rules] readonly attribute CSSRuleList rules;
|
||||
long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
|
||||
undefined removeRule(unsigned long index);
|
||||
undefined removeRule(optional unsigned long index);
|
||||
};
|
||||
|
||||
dictionary CSSStyleSheetInit {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue