commit 6b2591df29adce8991616869a7009be8d5369bd3 parent 98c1baae7ea63f0491decdbb5b39246406359219 Author: David Shin <dshin@mozilla.com> Date: Fri, 9 Jan 2026 15:26:03 +0000 Bug 2009222: Hide scrollbars in anchor-scroll-chained-003.html. r=dholbert As discussed in [1], because positioned elements intersect scrollbar gutters, leaving scrollbars visible ends up testing the scrollbar painting order. [1]: https://github.com/web-platform-tests/wpt/pull/55022#issuecomment-3499478504 Differential Revision: https://phabricator.services.mozilla.com/D278342 Diffstat:
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/testing/web-platform/meta/css/css-anchor-position/anchor-scroll-chained-003.html.ini b/testing/web-platform/meta/css/css-anchor-position/anchor-scroll-chained-003.html.ini @@ -1,4 +0,0 @@ -[anchor-scroll-chained-003.html] - expected: - if os == "android": [PASS, FAIL] - FAIL diff --git a/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-chained-003.html b/testing/web-platform/tests/css/css-anchor-position/anchor-scroll-chained-003.html @@ -20,7 +20,10 @@ div { } #scroller1,#scroller2 { - overflow: scroll; + /* Using scrollbars here tests scrollbar painting order as well, which isn't + related to anchor positioning. See: + https://github.com/web-platform-tests/wpt/pull/55022#issuecomment-3499478504 */ + overflow: hidden; } #anchor { diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-003-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-chained-003-ref.html @@ -16,7 +16,7 @@ div { } #scroller1,#scroller2 { - overflow: scroll; + overflow: hidden; } #anchor {