Skip to main content

element.scrollIntoView()

Scrolls the element's ancestors so the element becomes visible. Specification: drafts.csswg.org/cssom-view/.

Results​

Probed on 2026-10-19 with Node.js v22.23.3.

warpdom 0.1.6​

Missing

Missing: in this engine's window, this does not hold: typeof element.scrollIntoView === "function".

Report a wrong result for warpdom

happy-dom 21.0.3​

Supported

1 of 1 checks work.

Report a wrong result for happy-dom

jsdom 30.1.3​

Missing

Missing: in this engine's window, this does not hold: typeof element.scrollIntoView === "function".

Report a wrong result for jsdom

linkedom 0.18.13​

Missing

Missing: in this engine's window, this does not hold: typeof element.scrollIntoView === "function".

Report a wrong result for linkedom

Checks​

Exists when: typeof element.scrollIntoView === "function".

  • callable: scrollIntoView(), scrollIntoView(false) and scrollIntoView({ block: "center", behavior: "smooth" }) return without error. (spec)

Working around it in tests​

Tests commonly assign a no-op in a setup file: Element.prototype.scrollIntoView = function () {}.