Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 96c4a7386d59e2da9afbc35f0b99444dd3ef6921
      
https://github.com/WebKit/WebKit/commit/96c4a7386d59e2da9afbc35f0b99444dd3ef6921
  Author: Simon Fraser <[email protected]>
  Date:   2026-03-09 (Mon, 09 Mar 2026)

  Changed paths:
    M LayoutTests/TestExpectations
    M LayoutTests/platform/ios/TestExpectations
    M Source/WebCore/page/LocalFrameView.cpp

  Log Message:
  -----------
  [Scroll anchoring] css/css-scroll-anchoring/position-change-heuristic.html is 
flaky
https://bugs.webkit.org/show_bug.cgi?id=309429
rdar://171998007

Reviewed by Wenson Hsieh and Sammy Gill.

`css/css-scroll-anchoring/position-change-heuristic.html` was flaky; 
investigation shows that
scroll anchoring was happening inside a nested layout during 
`updateScrollbars()`, when called
for content size changes. `updateScrollbars()` holds the scroll position in a 
local variable,
which clobbered the scroll adjustment from anchoring.

Fix by disabling scroll anchoring during nested layouts.

This fixes two tests; one iOS test remains flaky.

* LayoutTests/TestExpectations:
* LayoutTests/platform/ios/TestExpectations:
* Source/WebCore/page/LocalFrameView.cpp:
(WebCore::LocalFrameView::willDoLayout):
(WebCore::LocalFrameView::performPostLayoutTasks):

Canonical link: https://commits.webkit.org/308920@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to