Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 04dc57e941dba51001a3cc34bc11e40bfd66f642
https://github.com/WebKit/WebKit/commit/04dc57e941dba51001a3cc34bc11e40bfd66f642
Author: Simon Fraser <[email protected]>
Date: 2026-06-26 (Fri, 26 Jun 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-to-zero-height-interior-area-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-to-zero-height-interior-area.html
M Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp
Log Message:
-----------
snap points inside zero-sized elements don't work correctly
https://bugs.webkit.org/show_bug.cgi?id=309717
rdar://172863699
Reviewed by Abrar Rahman Protyasha.
In order for snapping to elements with zero size on the scroll axis to work, we
need a `<=` comparison
on the max edge.
Test:
imported/w3c/web-platform-tests/css/css-scroll-snap/snap-to-zero-height-interior-area.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-to-zero-height-interior-area-expected.txt:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-snap/snap-to-zero-height-interior-area.html:
Added.
* Source/WebCore/page/scrolling/ScrollSnapOffsetsInfo.cpp:
(WebCore::offsetHasVisibleSnapArea):
(WebCore::findCompatibleSnapArea):
Canonical link: https://commits.webkit.org/315948@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications