An issue we’ve heard from authors is that they want to know what scrollbars are doing and respond to that.
There’s a bunch of issues that might go hand in hand to actually solve this:
- [^1] Expose an
env()variable that allows you to get the
scrollbar-size. This is a fixed value, independent of whether a scrollbar is shown or not – it just gives you back the size
- [^2] A way to query which type of scrollbars are being used on the page.
- A container state query to be able to know if something is overflowing or not
If you combine these three, authors can do things like: