tor-browser

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

commit 9d7e1b70bdba058df8a4a834bac693a02870f0f9
parent ae536942da32cd1e10b3658434f1ac1d1a8791df
Author: Ian Kilpatrick <ikilpatrick@chromium.org>
Date:   Tue, 21 Oct 2025 10:16:11 +0000

Bug 1994341 [wpt PR 55441] - [anchor] Fix anchored-fallback-scroll.html, a=testonly

Automatic update from web-platform-tests
[anchor] Fix anchored-fallback-scroll.html

This testcase was created assuming that the containing-block rectangle
was the viewport, not the scrollable rect.

Switch to `position:fixed` such that it uses the viewport.

Bug: 438515315
Change-Id: Ibd3447cf8883c72f9662f6a8674d2f5fdaa5f673
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7042904
Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Reviewed-by: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1529864}

--

wpt-commits: 6456a0dc2036af09fe9f1a4545a48a43fe69fc9b
wpt-pr: 55441

Diffstat:
Mtesting/web-platform/tests/css/css-anchor-position/container-queries/anchored-fallback-scroll.html | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/testing/web-platform/tests/css/css-anchor-position/container-queries/anchored-fallback-scroll.html b/testing/web-platform/tests/css/css-anchor-position/container-queries/anchored-fallback-scroll.html @@ -14,7 +14,7 @@ height: 100px; } #anchored { - position: absolute; + position: fixed; position-anchor: --a; position-area: top; position-try-fallbacks: flip-block; @@ -37,7 +37,6 @@ <script> promise_test(async t => { await waitForAnimationFrames(2); - assert_equals(anchored.offsetTop, 0); assert_equals(document.documentElement.scrollTop, 0); assert_equals(getComputedStyle(t1).getPropertyValue("--fallback"), "no"); }, "@container anchored() without applied fallback at initial scroll position"); @@ -45,7 +44,6 @@ promise_test(async t => { document.documentElement.scrollTop = 100; await waitForAnimationFrames(2); - assert_equals(anchored.offsetTop, 200); assert_equals(getComputedStyle(t1).getPropertyValue("--fallback"), "yes"); }, "@container anchored() applies fallback after scrolling down"); </script>