Re: [csswg-drafts] [css-transitions] smoothly transitioning scrollbars in/out when it appears/disappears (#6844)

The problem is that `scrollbar-gutter` cant always be used because of the awkward space that gets left when the content is not overflowing (so no scrollbar). I dont think this space is stylable? See the white space to the right here:

<img width="133" alt="CleanShot 2022-06-27 at 22 39 36@2x" src="https://user-images.githubusercontent.com/351537/176031750-f8e3b0e2-e219-49c6-b668-c1a052a8fe47.png">

So now we have to have this abrupt jump when opening modals:

![CleanShot 2022-06-27 at 22 42 29](https://user-images.githubusercontent.com/351537/176033319-d083df73-4cda-4d6e-acce-c506d8ece506.gif)

Its especially noticable when a modal is animated in smoothly. Can't the browser provide a way to have this be smooth also?

Giving developers more control of the "empty scrollbar gutter" might be a way to solve this problem also.

-- 
GitHub Notification of comment by emattias
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6844#issuecomment-1167881928 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 27 June 2022 20:51:22 UTC