# utils/dom/findclosestscrollableancestor

module

<a id="functions">

## Functions

<a id="function-findClosestScrollableAncestor">

### `findClosestScrollableAncestor( domElement ) → HTMLElement | null`

Returns the closest scrollable ancestor of a DOM element.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/dom/findclosestscrollableancestor.ts#L18)

#### Parameters

* `domElement: HTMLElement`

  DOM element.

#### Returns

* `HTMLElement | null`

  First ancestor of `domElement` that is scrollable or null if such ancestor doesn't exist.

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
