HTMLElement.offsetParent read-only property returns a
reference to the element which is the closest (nearest in the containment hierarchy)
positioned ancestor element.
A positioned ancestor is either:
- an element with a non-static position, or
tablein case the element itself is static positioned.
If there is no positioned ancestor element, the
body is returned.
null in the following
The element or any ancestor has the
displayproperty set to
The element has the
positionproperty set to
- The element is
An object reference to the element in which the current element is offset.
|CSSOM View Module
BCD tables only load in the browser