Open
Description
I would like to apply some style on an element based on its container being scrollable or not.
- Once the scrollbar appears, the style within my container query gets applied (✅)
- Once the scrollbar disappears, the style within my container query won't reset (❌)
Here is a small reproduction of my "issue".
In the end, what I would like is some way to determine if some element is scrollable or not (or if the scrollbar is visible, actually) and I only found the newer
scroll-state
to achieve this, but it may not be meant for this thoug...