commit 2cea947d2f3496e4aecaace9ec1bca0ef5d53f8e
parent 8cd5a0fe3a0bf3564330e7a61d3b495842a8ba06
Author: Tim Nguyen <nt1m@users.noreply.github.com>
Date: Thu, 9 Oct 2025 20:36:13 +0000
Bug 1992293 [wpt PR 55189] - Stop assuming scrollbar track is always opaque in cross-axis-scrollbar.html, a=testonly
Automatic update from web-platform-tests
Stop assuming scrollbar track is always opaque in cross-axis-scrollbar.html (#55189)
Starting macOS Tahoe, the scrollbar track is no longer fully opaque, so it starts revealing a red background behind it.
--
wpt-commits: a14c5a9858e901e8bd7215dadc964c04cf0f52e5
wpt-pr: 55189
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/testing/web-platform/tests/css/css-flexbox/cross-axis-scrollbar.html b/testing/web-platform/tests/css/css-flexbox/cross-axis-scrollbar.html
@@ -12,7 +12,17 @@ body {
}
.flexbox {
+ position: relative;
+ background-color: green;
+}
+
+/* Don't use a red background on .flexbox as it might show behind scrollbars on platforms where the track may be transparent */
+.flexbox::before {
+ content: "";
background-color: red;
+ position: absolute;
+ inset: 0;
+ z-index: -1;
}
.vertical-rl {