mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-22 17:29:01 +00:00
LibWeb: Support Element.closest(selectors)
This commit is contained in:
parent
70ede2825e
commit
c646afc26c
Notes:
sideshowbarker
2024-07-17 18:43:13 +09:00
Author: https://github.com/EdwinHoksberg
Commit: c646afc26c
Pull-request: https://github.com/SerenityOS/serenity/pull/12560
Reviewed-by: https://github.com/trflynn89 ✅
3 changed files with 28 additions and 0 deletions
|
@ -63,6 +63,7 @@ public:
|
|||
RefPtr<DOMTokenList> const& class_list();
|
||||
|
||||
DOM::ExceptionOr<bool> matches(StringView selectors) const;
|
||||
DOM::ExceptionOr<DOM::Element const*> closest(StringView selectors) const;
|
||||
|
||||
int client_top() const;
|
||||
int client_left() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue