github web-platform-tests/wpt merge_pr_49436

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
9 months ago

[anchor] Respect anchor-scope in PhysicalAnchorQuery::AnchorReference

The scroll-snapshotting code uses PhysicalAnchorQuery::AnchorReference
(via LayoutBox::FindTargetAnchor) in order to find the relevant
anchor element. This traversal also needs to check whether a candidate
anchor and querying element is in the same (anchor) scope.

This fixes an issue where scroll transforms would not apply
to anchored elements under some scope.

Fixed: 380234225
Change-Id: If778f3c52276c13e9a0b7f0b364ad71266e3da51
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6054228
Reviewed-by: Rune Lillesveen futhark@chromium.org
Commit-Queue: Anders Hartvoll Ruud andruud@chromium.org
Cr-Commit-Position: refs/heads/main@{#1389656}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.