Check if scrollbar is visible with CSS

Viewed 113

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?

0 Answers
Related