mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:27:34 +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
|
@ -51,7 +51,7 @@ public:
|
|||
|
||||
WebIDL::ExceptionOr<unsigned> insert_rule(StringView rule, unsigned index);
|
||||
WebIDL::ExceptionOr<WebIDL::Long> add_rule(Optional<String> selector, Optional<String> style, Optional<WebIDL::UnsignedLong> index);
|
||||
WebIDL::ExceptionOr<void> remove_rule(unsigned index);
|
||||
WebIDL::ExceptionOr<void> remove_rule(Optional<WebIDL::UnsignedLong> index);
|
||||
WebIDL::ExceptionOr<void> delete_rule(unsigned index);
|
||||
|
||||
JS::NonnullGCPtr<JS::Promise> replace(String text);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue