getOffsetParent
1.6

getOffsetParent(element) -> HTMLElement

Returns element’s closest positioned ancestor. If none is found, the body element is returned.

The returned element is element’s CSS containing block.