W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2017

Re: [csswg-drafts] [css-ui-4][css-overflow] Suggestion: "Overflow styling" / Scrollbar styling

From: zocky via GitHub <sysbot+gh@w3.org>
Date: Sat, 16 Dec 2017 18:45:19 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-352202904-1513449918-sysbot+gh@w3.org>
I'd like to chime in with an obvious use case for overlaid scrollbars which don't reserve gutter space.

Consider a vertically split layout in which you have a scrollable selectable list (or any other content with varying backgrounds) on the left side. A constantly visible vertical scrollbar in the middle of the screen is *very* intrusive in such a layout - you want it to show only while scrolling and on mouse hover.  At the same time, you don't want it to have a gutter showing between your list and the content on the right when the scrollbar is hidden.

A good example is the explorer sidebar in VS Code. Its scrollbar fades in and out on mouse-in mouse-out, but it doesn't take up any space, and the selected list item takes up the full width of the list. It's a good and useful design which functions very well, but it's not achievable with pure CSS.

-- 
GitHub Notification of comment by zocky
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/107#issuecomment-352202904 using your GitHub account
Received on Saturday, 16 December 2017 18:45:21 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:21 UTC