Find the first ancestor of the given child element matching the provided predicate function, walking up through shadow root boundaries.
child
predicate
Find the first ancestor of the given
childelement matching the providedpredicatefunction, walking up through shadow root boundaries.