Bug 253070

Summary: Fix alignToClosestEdge semantics in ScrollableArea::getRectToExposeForScrollIntoView
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: karlcow, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
URL: https://jsfiddle.net/ubw216ze/show
Attachments:
Description Flags
Patch GitHub Desktop Screenshot none

Description Ahmad Saleem 2023-02-28 04:27:51 PST
Created attachment 465218 [details]
Patch GitHub Desktop Screenshot

Hi Team,

While going through Blink's commit, I came across another where we are failing tests but Chrome Canary 113 is passing them while Firefox Nightly 112 is matching Safari Technology Preview 164.

Test case - https://jsfiddle.net/tzj4kq28/show

Blink Commit - https://chromium.googlesource.com/chromium/blink/+/ae8d18613905f501a3ce9ba83193fe77e920afbf

WebKit Source - https://searchfox.org/wubkat/source/Source/WebCore/platform/ScrollableArea.cpp#857 & https://searchfox.org/wubkat/source/Source/WebCore/platform/ScrollableArea.cpp#899

I have done local merge of this patch but it does not lead to pass on this testcase but it would be good to track and get input whether this is legit bug in WebKit or not.

Just raising for tracking.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-03-07 04:28:14 PST
<rdar://problem/106356373>
Comment 2 Karl Dubost 2023-03-26 20:39:47 PDT
I'm not sure. 
Safari and Firefox are behaving the same in these tests.