Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 448f87edcfe9b6186a2c59e5e47e5976fcef57bc
      
https://github.com/WebKit/WebKit/commit/448f87edcfe9b6186a2c59e5e47e5976fcef57bc
  Author: Elika Etemad <[email protected]>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M LayoutTests/TestExpectations
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scope-shadow-all-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scope-shadow-names-expected.txt
    M Source/WebCore/style/AnchorPositionEvaluator.cpp

  Log Message:
  -----------
  Make anchor-scope scope anchor lookups, not just anchor names
https://bugs.webkit.org/show_bug.cgi?id=295005
rdar://154350392

Reviewed by Tim Nguyen.

anchor-scope is supposed to constrain not only the anchor name from escaping
(and being visible outside the scope), but also the anchor lookup from escaping
(and finding things outside the scope).

* LayoutTests/TestExpectations:
Passing test, yay!

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scope-shadow-all-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-scope-shadow-names-expected.txt:
We don't actually do tree-scoped lookups for anchor-scope, so these results
are incidental. Rebaseline them.

* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::Style::anchorScopeForAnchorName):
Update logic.

Canonical link: https://commits.webkit.org/297242@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