Skip to content

Commit 6e31dcf

Browse files
Handle both-edge gutters in zero-width scrollers
Clamp both inline gutters when their reserved space exceeds the content box, avoiding a DCHECK in the scrollbar sizing fallback. Fixed: 513205371 Change-Id: I142d5ae69cbde3ae9b3170d8471c5058ae0f41bc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7850672 Commit-Queue: Jason Leo <cgqaq@chromium.org> Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org> Cr-Commit-Position: refs/heads/main@{#1631005}
1 parent aa3d3d3 commit 6e31dcf

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<meta charset="utf-8">
3+
<title>CSS Overflow: zero-width scroller with scrollbar-gutter should not crash</title>
4+
<link rel="author" title="Jason Leo" href="mailto:cgqaq@chromium.org">
5+
<link rel="help" href="https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property">
6+
<style>
7+
#target {
8+
overflow: auto;
9+
scrollbar-gutter: stable both-edges;
10+
width: 0;
11+
}
12+
</style>
13+
<div id="target"></div>
14+
<script>
15+
target.scrollTop;
16+
</script>

0 commit comments

Comments
 (0)