[Webkit-unassigned] [Bug 219013] IntersectionObserver with root:document computes subframe intersection incorrectly
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 18 06:51:21 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=219013
Ali Juma <ajuma at chromium.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ajuma at chromium.org
--- Comment #3 from Ali Juma <ajuma at chromium.org> ---
WebKit's behavior in this case seems to match the spec as currently written.
According to https://www.w3.org/TR/intersection-observer/#intersection-observer-interface:
"Any target of an explicit root observer ... must be in the same document as the intersection root."
And according to https://www.w3.org/TR/intersection-observer/#update-intersection-observations-algo:
"If the intersection root is not the implicit root, and target is not in the same document as the intersection root, skip to step 11." Skipping to step 11 means skipping the computation of the intersection.
So in Document.cpp, computeIntersectionState() earlies-out if the observer has an explicit root but the target is in a different document.
If other browsers are handling this case differently, perhaps the parts of the spec mentioned above need to be updated for the case where the explicit root is the main-frame's document.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201118/0087f5df/attachment.htm>
More information about the webkit-unassigned
mailing list