Re: [csswg-drafts] Element-based start and end offsets (#4337)

As I was doing a prototype implementation of this idea in Chromium, I realized that I have not made this clear that the target for element-based offset need to be a descendant of the scroll timeline source. Otherwise finding an scroll offset that corresponds to intersection does not make much sense. We just have to make this clear when specifying this proposal. 


Note that a similar restriction exists for [Intersection Observer](https://w3c.github.io/IntersectionObserver/#update-intersection-observations-algo) as well:
> If the intersection root is an Element, and target is not a descendant of the intersection root in the containing block chain, skip further processing for target. 


-- 
GitHub Notification of comment by majido
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4337#issuecomment-610989843 using your GitHub account

Received on Wednesday, 8 April 2020 14:23:50 UTC