The IntersectionObserverEntry
interface's read-only rootBounds
property is a DOMRectReadOnly
corresponding to the target
's root intersection rectangle, offset by the IntersectionObserver.rootMargin
if one is specified.
The IntersectionObserverEntry
interface's read-only rootBounds
property is a DOMRectReadOnly
corresponding to the target
's root intersection rectangle, offset by the IntersectionObserver.rootMargin
if one is specified.
A DOMRectReadOnly
which describes the root intersection rectangle. For roots which are the Document
's viewport, this rectangle is the bounds rectangle of the entire document. Otherwise, it's the bounds of the root element.
This rectangle is offset by the values in IntersectionObserver.rootMargin
.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
rootBounds |
51 | 15 | 55 | No | 38 | 12.1 | 51 | 51 | 55 | 41 | 12.2 | 5.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/rootBounds