Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2c343cbdfcb8cd93a339a8848981af3a7768f348 https://github.com/WebKit/WebKit/commit/2c343cbdfcb8cd93a339a8848981af3a7768f348 Author: Johannes Odland <johannes.odl...@gmail.com> Date: 2025-04-05 (Sat, 05 Apr 2025)
Changed paths: M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-and-root-margin-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-4-val-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-clip-path-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-dynamic-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-horizontal-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-iframe-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-nested-2-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-nested-3-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-nested-expected.txt M LayoutTests/imported/w3c/web-platform-tests/intersection-observer/scroll-margin-percent-expected.txt M LayoutTests/intersection-observer/intersection-observer-interface-expected.txt M LayoutTests/intersection-observer/intersection-observer-interface.html A LayoutTests/intersection-observer/scroll-margin-expected.txt A LayoutTests/intersection-observer/scroll-margin.html M Source/WebCore/dom/ContentVisibilityDocumentState.cpp M Source/WebCore/html/LazyLoadFrameObserver.cpp M Source/WebCore/html/LazyLoadImageObserver.cpp M Source/WebCore/page/IntersectionObserver.cpp M Source/WebCore/page/IntersectionObserver.h M Source/WebCore/page/IntersectionObserver.idl M Source/WebCore/rendering/RenderBox.cpp M Source/WebCore/rendering/RenderObject.h Log Message: ----------- [intersection-observer] Implement support for scrollMargin https://bugs.webkit.org/show_bug.cgi?id=263370 Reviewed by Simon Fraser This change adds support for scrollMargin to IntersectionObserver and IntersectionObserverInit. It reuses the existing rootMargin implementation for parsing and serializing. An optional scrollMargin is added to VisibleRectContext and passed to RenderBox::applyCachedClipAndScrollPosition() where it is applied to every scrollport. The scrollMargin is also applied to the root bounds, and frame rects. Canonical link: https://commits.webkit.org/293306@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes