[Webkit-unassigned] [Bug 224324] New: IntersectionObserver with root:document does not trigger callback as expected
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 8 05:10:55 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=224324
Bug ID: 224324
Summary: IntersectionObserver with root:document does not
trigger callback as expected
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: macOS 11
Status: NEW
Severity: Normal
Priority: P2
Component: New Bugs
Assignee: webkit-unassigned at lists.webkit.org
Reporter: johannes.odland at nrk.no
IntersectionObserver with root:document does not invoke the callback when the target intersects with the root intersection rectangle.
When the intersection root is a document, the root intersection rectangle is the document's viewport.
When a target intersects with the viewport the observer's callback should be invoked, but it is not.
Steps to reproduce:
1: open the following codepen: https://codepen.io/johannesodland/pen/mdRqdxE
2: scroll to the bottom.
Expected result:
Callback is invoked and background-color of footer/target should be green.
What went wrong?
Callback is not invoked and background-color of footer/target is red.
Both Firefox and Chrome invokes the callback.
Safari now passes the suggested feature-detection for document as intersection root (https://github.com/w3c/IntersectionObserver/issues/372), but fails to invoke callbacks when target is intersecting.
--
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/20210408/340c5742/attachment.htm>
More information about the webkit-unassigned
mailing list