@wordpress/dom
Version:
DOM utilities module for WordPress.
13 lines • 534 B
TypeScript
/**
* Returns the closest positioned element, or null under any of the conditions
* of the offsetParent specification. Unlike offsetParent, this function is not
* limited to HTMLElement and accepts any Node (e.g. Node.TEXT_NODE).
*
* @see https://drafts.csswg.org/cssom-view/#dom-htmlelement-offsetparent
*
* @param {Node} node Node from which to find offset parent.
*
* @return {Node | null} Offset parent.
*/
export default function getOffsetParent(node: Node): Node | null;
//# sourceMappingURL=get-offset-parent.d.ts.map