UNPKG

composed-offset-position

Version:

This provides a set of ponyfills to achieve the same behavior of `offsetParent`, `offsetLeft` and `offsetTop` before the `offsetParent` spec was changed.

4 lines (3 loc) 211 B
export declare function offsetParent(element: HTMLElement): HTMLElement | null; export declare function offsetTop(element: HTMLElement): number; export declare function offsetLeft(element: HTMLElement): number;