tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 207cd79686b495fe9c1a35e1c123d72bbb7ecea2
parent e8bb3d30958edea92f3fb4f973057ad33f3e91c2
Author: Vladimir Levin <vmpstr@chromium.org>
Date:   Fri, 10 Oct 2025 07:48:48 +0000

Bug 1992741 [wpt PR 55243] - Anchor: Update anchor-scroll-position-try-{013,014}.html, a=testonly

Automatic update from web-platform-tests
Anchor: Update anchor-scroll-position-try-{013,014}.html

This patch changes the amount by which we scroll in the test before we
expect that the fallback position changes to flip-block.

The change here is to make sure that the positioned element intersects
the edge of the containing block.

Without this, due to remembered scroll offsets we retain the previous
try position, per spec.

R=ikilpatrick@chromium.org

Bug: 438515315
Change-Id: Ia32e4e7f0964c70928539ac9f6992ea0efdec0f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7003569
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1525052}

--

wpt-commits: 255b49146e5ce676f6ea93fecc3642196daa3be3
wpt-pr: 55243

Diffstat:
Mtesting/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-013.html | 2+-
Mtesting/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-014.html | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-013.html b/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-013.html @@ -53,7 +53,7 @@ promise_test(async () => { }); promise_test(async () => { - scroller.scrollTop = 50; + scroller.scrollTop = 101; await waitUntilNextAnimationFrame(); assert_fallback_position(abspos, anchor, 'bottom'); }); diff --git a/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-014.html b/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-position-try-014.html @@ -56,13 +56,13 @@ promise_test(async () => { }); promise_test(async () => { - scroller.scrollTop = -100; + scroller.scrollTop = -116; await waitUntilNextAnimationFrame(); assert_fallback_position(abspos, anchor, 'top'); }); promise_test(async () => { - scroller.scrollTop = -50; + scroller.scrollTop = -40; await waitUntilNextAnimationFrame(); assert_fallback_position(abspos, anchor, 'bottom'); });