[csswg-drafts] [scroll-state] rules won't reset when the container stops being scrollable (#11688)

LcsGa has just created a new issue for https://github.com/w3c/csswg-drafts:

== [scroll-state] rules won't reset when the container stops being scrollable ==
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](https://codepen.io/lcsga/pen/PwoYLYB?editors=1100) 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...

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11688 using your GitHub account


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

Received on Monday, 10 February 2025 16:27:05 UTC