Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 98e98755a83541128db112e56f16b1b58b7445ab
      
https://github.com/WebKit/WebKit/commit/98e98755a83541128db112e56f16b1b58b7445ab
  Author: Elika Etemad <[email protected]>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

  Changed paths:
    M LayoutTests/TestExpectations
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll-002-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll-002.html
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll.html
    M Source/WebCore/style/AnchorPositionEvaluator.cpp

  Log Message:
  -----------
  Update position-visibility: no-overflow invisibility in response to scrolling
https://bugs.webkit.org/show_bug.cgi?id=300373
rdar://162173481

Reviewed by Antti Koivisto.

Updates the AnchorScrollAdjuster to also track limits for position-visibility:
no-overflow (which happen to be the same as for fallback restyling), and sets
up appropriate invalidation.

Test: 
imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll-002.html
* LayoutTests/TestExpectations:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll-002-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll-002.html:
 Copied from 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll.html.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-visibility-no-overflow-scroll.html:

Add new test to cover the position-area case.
  https://github.com/web-platform-tests/wpt/pull/55295
Fix error in the existing anchor() test.
  https://github.com/web-platform-tests/wpt/pull/55294
Mark existing anchor() test as passing.

* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::AnchorPositionEvaluator::captureScrollSnapshots):

Capture limits for no-oveflow case as well.

(WebCore::Style::AnchorPositionEvaluator::updateScrollAdjustments):

Distinguish fallback vs no-overflow cases and invalidate accordingly.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to