Solved by CSS Scroll-Driven Animations: Detect if an element can scroll or not

Leverage Scroll-Driven Animations + a Space Toggle or State Query to selectively style an element based on it being scrollable or not.

Actions
Flag