I know we can compare element scrollHeight vs clientHeight using JavaScript to detect if the scrollbar is visible. Then we can use ResizeObserver to make it work with dynamic content.
I'm interested in pure css solution. Is there any?
I know we can compare element scrollHeight vs clientHeight using JavaScript to detect if the scrollbar is visible. Then we can use ResizeObserver to make it work with dynamic content.
I'm interested in pure css solution. Is there any?