1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:27:45 +00:00

LibWeb: Support Element.closest(selectors)

This commit is contained in:
Edwin Hoksberg 2022-02-15 20:41:51 +01:00 committed by Tim Flynn
parent 70ede2825e
commit c646afc26c
3 changed files with 28 additions and 0 deletions

View file

@ -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;