mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 00:54:57 +00:00
![]() When the intersection root is a Document, we use the viewport itself as the root intersection rectangle. However, we should only use the size of the viewport and strip away the current scroll offset. This is important, as intersections are computed using viewport-relative element rects, so we're already in a coordinate system where (0, 0) is the top left of the scrolled viewport. This fixes an issue where IntersectionObservers would fire at entirely wrong scroll offsets. :^) |
||
---|---|---|
.. | ||
IntersectionObserver.cpp | ||
IntersectionObserver.h | ||
IntersectionObserver.idl | ||
IntersectionObserverEntry.cpp | ||
IntersectionObserverEntry.h | ||
IntersectionObserverEntry.idl |