Query .scrollParent()Finds nearest scroll container elementquery-scrollparentcomponentQuerypage.jsDOM TraversalReturns window if no scroll container found. Use { all: true } to get all scroll parents in the chain["query","scroll","parent","overflow"].scrollParent()Example