utils/dom/getpositionedancestor
@ckeditor/ckeditor5-utils/src/dom/getpositionedancestor
module
Filtering
Functions
-
getPositionedAncestor( element ) → HTMLElement | null
For a given element, returns the nearest ancestor element which CSS position is not "static".
Parameters
element : HTMLElement
The native DOM element to be checked.
Returns
HTMLElement | null
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.