commit 2dbbdcb739ba5931472982f818d517113be90f49 parent cfd01b1afc840ffa7d4410e37a4317713917d94a Author: Ian Kilpatrick <ikilpatrick@chromium.org> Date: Mon, 27 Oct 2025 10:02:17 +0000 Bug 1995884 [wpt PR 55604] - [anchor] Fix flaky css-anchor-position tests., a=testonly Automatic update from web-platform-tests [anchor] Fix flaky css-anchor-position tests. All these tests have issues with the scrollbar fading in, just remove the scrollbar via setting scrollbar-width:none Bug: 438515315 Change-Id: I8079b758afe9995da7f94371da2426c42e6b1c36 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7041839 Auto-Submit: Ian Kilpatrick <ikilpatrick@chromium.org> Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Commit-Queue: David Grogan <dgrogan@chromium.org> Cr-Commit-Position: refs/heads/main@{#1533915} -- wpt-commits: 00ccce0199ca3074ecc12eb3fcefa280db5156f9 wpt-pr: 55604 Diffstat:
8 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-to-sticky-003.html b/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-to-sticky-003.html @@ -15,6 +15,7 @@ div { #scroller { overflow: scroll; + scrollbar-width: none; } #anchor { diff --git a/testing/web-platform/tests/css/css-anchor-position/position-try-switch-from-fixed-anchor-ref.html b/testing/web-platform/tests/css/css-anchor-position/position-try-switch-from-fixed-anchor-ref.html @@ -1,5 +1,8 @@ <!doctype html> <style> +html { + scrollbar-width: none; +} body { width: 150vw; height: 150vh; diff --git a/testing/web-platform/tests/css/css-anchor-position/position-try-switch-from-fixed-anchor.html b/testing/web-platform/tests/css/css-anchor-position/position-try-switch-from-fixed-anchor.html @@ -8,6 +8,9 @@ <script src="/common/reftest-wait.js"></script> <script src="/common/rendering-utils.js"></script> <style> +html { + scrollbar-width: none; +} body { width: 150vw; height: 150vh; diff --git a/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-after-scroll-in-ref.html b/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-after-scroll-in-ref.html @@ -3,6 +3,7 @@ <style> #scroll-container { overflow: hidden scroll; + scrollbar-width: none; width: 300px; height: 100px; } diff --git a/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-after-scroll-in.html b/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-after-scroll-in.html @@ -10,6 +10,7 @@ <style> #scroll-container { overflow: hidden scroll; + scrollbar-width: none; width: 300px; height: 100px; } diff --git a/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-chained-004-ref.html b/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-chained-004-ref.html @@ -3,6 +3,7 @@ <style> #scroll-container { overflow: hidden scroll; + scrollbar-width: none; width: 300px; height: 100px; } diff --git a/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-chained-004.html b/testing/web-platform/tests/css/css-anchor-position/position-visibility-anchors-visible-chained-004.html @@ -9,6 +9,7 @@ <style> #scroll-container { overflow: hidden scroll; + scrollbar-width: none; width: 300px; height: 100px; } diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-003-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-to-sticky-003-ref.html @@ -11,6 +11,7 @@ div { #scroller { overflow: scroll; + scrollbar-width: none; } #anchor {