Follow-up of bug 188043. This might need a bit more work so I'm moving that part out of the main bug. Basically, the patch in bug 188043 naively follows https://drafts.csswg.org/cssom-view/#scroll-an-element-into-view but does not wait for smooth scroll of step 12 to complete, possibly resulting in wrong final positions. It's not clear we actually want to align on the current spec anyway, Gecko and Chromium use different algorithm. For details, see https://github.com/w3c/csswg-drafts/issues/3127 The WPT test for this is http://w3c-test.org/css/cssom-view/scroll-behavior-scrollintoview-nested.html
<rdar://problem/82314968>
Created attachment 447299 [details] Testcase Seems to work OK looking at the attached testcase
Possibly I fixed this, anyway maybe Fred can double-check.
Safari pass WPT test for following - https://wpt.fyi/results/css/cssom-view/scroll-behavior-scrollintoview-nested.html?label=master&label=experimental&aligned&q=scroll-behavior Is it needed now or this can be marked as "RESOLVED CONFIGURATION CHANGED"? Thanks!
Further, Safari also matches in behavior with all other browsers. I am going to mark this as "RESOLVED CONFIGURATION CHANGED", please reopen if this is not fixed. Thanks!