IntersectionObserver entries inaccurate #24287
Labels
area: Resize/Intersection Observer
Content:WebAPI
Web API docs
effort: medium
This task is a medium effort.
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
What specific section or headline is this issue about?
Targeting an element to be observed
What information was incorrect, unhelpful, or incomplete?
The list of entries received by the callback includes one entry for each target which reported a change in its intersection status.
What did you expect to see?
The list of entries received by the callback includes at least one entry for each target which reported a change in its intersection status. Multiple intersection changes may be reported in the same event.
either:
Check the
time
property to see in which order the changes occur.or:
The entries will be listed ordered from first to last.
Do you have any supporting links, references, or citations?
I will write a test.
Something like this should work on any page with reasonable complexity and length.
and then grab the scroll-bar and crank up and down an few times.
Do you have anything more you want to share?
I do not know wether the entries are always in chronological order. Please advise.
MDN metadata
Page report details
en-us/web/api/intersection_observer_api
The text was updated successfully, but these errors were encountered: