This feature is experimental. It may be changed or removed in a future version without prior notice or deprecation.
Returns the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
The element on which to start the search.
The CSS selector to match.
element The matching element.
undefined if no element matches.