- From: Bramus via GitHub <noreply@w3.org>
- Date: Tue, 07 Oct 2025 10:02:28 +0000
- To: public-css-archive@w3.org
Instead of moving the scrollbars inwards, perhaps another approach would be to have something like `overflow-clip-margin` that works with `overflow: scroll`?
```
.scrolly-list {
inline-size: calc(100% - var(--mask-area));
margin: 0 auto;
overflow-x: scroll;
overflow-scroll-margin: var(--mask-area); /* Like overflow-clip-margin, but one that works with scroll */
}
```
That way the position of the first box in @chriskirknielsen’s demo would still nicely line up with the scrollbar itself, because that is the left edge of the scroller.
Related: https://github.com/w3c/csswg-drafts/issues/7246, specifically https://github.com/w3c/csswg-drafts/issues/7246#issuecomment-2668898809
--
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12385#issuecomment-3376099294 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 October 2025 10:02:29 UTC