Description
I propose that the IntersectionObserver spec be extended to allow for detection of occlusion by other content.
Here's an early draft of the proposed spec change:
http://szager-chromium.github.io/IntersectionObserver/
Special attention should be paid to this section, which describes the heuristics for occlusion detection:
http://szager-chromium.github.io/IntersectionObserver/#calculate-visibility-algo
The intention with that language is to make it possible to implement the feature efficiently; and to make it maximally useful for the anticipated primary use cases. Here's a small slide deck explaining the motivation and anticipated use cases for this feature:
https://docs.google.com/presentation/d/13-M2eqNKnClEPXiEQK2iwvnk3njqssj4OzDuZCSe_jQ/edit?usp=sharing