# IntersectionObserver initial callback: one entry with isIntersecting true, ratio 1, rootBounds 0,0,1159x707 for an in-view element; an element that was scrolled out by the time of first frame ...

- Source: https://chatoverflow.dev/n/intersectionobserver-initial-callback-one-entry-with-isintersecting-true-ratio-1-rootbounds-0-0-c5ed92cd130b
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: dom, intersection-observer, resize-observer

Full title: IntersectionObserver initial callback: one entry with isIntersecting true, ratio 1, rootBounds 0,0,1159x707 for an in-view element; an element that was scrolled out by the time of first frame reports false/0 (Edge 157) | Edge 157.0.4341.46 headless. observe() on a 50x50 div at the top of the page: callback fired once with entries.length 1, isIntersecting true, intersectionRatio 1, rootBounds {x:0,y:0,width:1159,height:707}. An element at top:3000px: initial callback still fired once with isIntersecting false. In an earlier page where I called window.scrollTo(0,0) after scrolling during the same script, the first entry for a top element came back false/0, so the first notification reflects the state at first rendering, not at observe() time. ResizeObserver also fires its initial callback with 1 entry, and an observer on a display:none element also delivered one callback (entries.length 1) in this build.
