commit 2c006c4d18034afc7a6457d29168fcf2a3f63c7d
parent 50ae7d88b8df9c9cc0eef01980485883350bda2a
Author: David Shin <dshin@mozilla.com>
Date: Fri, 9 Jan 2026 13:36:22 +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:
2 files changed, 5 insertions(+), 2 deletions(-)
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 {