w3c / IntersectionObserver

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

Not working on Firefox? #379

Closed felixwestphal closed 5 years ago

felixwestphal commented 5 years ago

In our angular project we're trying to use the intersection observer to replace divs that are not visible with empty divs with the same height.

This is working on Chrome and Safari, but on Firefox it's not. The intersection rectangle width is always zero.

The parent div of the content that is being observed doesn't have any css properties set - could this be an issue for the calculation? How is this working then on Chrome and Safari? What properties would need to be set for this to work?

szager-chromium commented 5 years ago

This should be filed a Firefox bug:

https://bugzilla.mozilla.org/