Skip to content

Commit 9beb005

Browse files
lukewarlowchromium-wpt-export-bot
authored andcommitted
Fix paint issue with transparent scrollbars
LayoutBox::BackgroundClipBorderBoxIsEquivalentToPaddingBox now correctly accounts for non-auto scrollbar gutters, along with non-opaque scrollbars. ScrollbarDisplayItem::IsOpaque also now handles non-opaque non-overlay scrollbars. Bug: 1490798, 1459802 Change-Id: I7c3d5c3c1a498b43082dddfb7cab9850951e4ec6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4952560 Reviewed-by: Xianzhu Wang <[email protected]> Commit-Queue: Luke <[email protected]> Cr-Commit-Position: refs/heads/main@{#1212641}
1 parent 11ec07c commit 9beb005

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html>
3+
<style>
4+
.container {
5+
overflow: auto;
6+
height: 200px;
7+
width: 200px;
8+
background-color: red;
9+
}
10+
</style>
11+
<div class="container">
12+
<div class="content"></div>
13+
</div>
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<!doctype html>
2+
<html>
3+
<title>scrollbar-color with transparent colors works</title>
4+
<link rel="author" title="Luke Warlow" href="mailto:[email protected]" />
5+
<link rel="match" href="scrollbar-color-012-ref.html" />
6+
<link rel="help" href="https://drafts.csswg.org/css-scrollbars" />
7+
<style>
8+
html {scrollbar-color: transparent transparent;}
9+
body {height: 200vh}
10+
.container {
11+
overflow: auto;
12+
height: 200px;
13+
width: 200px;
14+
background-color: red;
15+
}
16+
17+
.content {
18+
height: 300px;
19+
width: 300px;
20+
}
21+
</style>
22+
<div class="container">
23+
<div class="content"></div>
24+
</div>

0 commit comments

Comments
 (0)