w3c / IntersectionObserver

Intersection Observer
https://www.w3.org/TR/intersection-observer/
Other
3.62k stars 526 forks source link

prop "is visible" doesn't work in some cases. #417

Closed OlegBrony closed 3 years ago

OlegBrony commented 4 years ago

I have a div wrapper with fixed width and second div with bigger width. In inner div I have some elements that I want to observe, but the 'isVisible' prop is always false. sandbox

szager-chromium commented 3 years ago

The 'isVisible' property is currently only implemented in chromium, and it needs to be activated when constructing the IntersectionObserver; see:

https://w3c.github.io/IntersectionObserver/v2/#dom-intersectionobserverinit-trackvisibility

If you believe Chrome or Edge is not behaving correctly according to the specification, please file a bug in the chromium bug tracker (crbug.com).