Skip to content

Commit 5a3a937

Browse files
CGOfficialchromium-wpt-export-bot
authored andcommitted
Fix background image offset issue when there's gutter
Bug: 40788919 Change-Id: I1baa78459696dc163f379567846cf47e8fc730d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6391395 Reviewed-by: Fredrik Söderquist <[email protected]> Auto-Submit: Jason Leo <[email protected]> Reviewed-by: Xianzhu Wang <[email protected]> Commit-Queue: Fredrik Söderquist <[email protected]> Cr-Commit-Position: refs/heads/main@{#1439296}
1 parent 6a12731 commit 5a3a937

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-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+
<meta charset="utf-8">
3+
<title>CSS Overflow: test scrollbar-gutter with background gradient</title>
4+
<link rel="author" title="CGQAQ" href="mailto:[email protected]">
5+
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property">
6+
<style>
7+
html {
8+
scrollbar-gutter: stable both-edges;
9+
background-image: linear-gradient(to right, green, blue);
10+
position: fixed;
11+
inset: 0;
12+
}
13+
</style>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: test scrollbar-gutter with background gradient</title>
4+
<link rel="author" title="CGQAQ" href="mailto:[email protected]">
5+
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property">
6+
<link rel="match" href="scrollbar-gutter-with-background-gradient-ref.html">
7+
<meta name=fuzzy content="maxDifference=0-1;totalPixels=0-70000">
8+
<style>
9+
html {
10+
scrollbar-gutter: stable both-edges;
11+
background-image: linear-gradient(to right, green, blue);
12+
}
13+
</style>

0 commit comments

Comments
 (0)