title: Check if scrollbar is visible with CSS
body: <p>I know we can compare element <code>scrollHeight</code> vs <code>clientHeight</code> using JavaScript to detect if the scrollbar is visible. Then we can use <code>ResizeObserver</code> to make it work with dynamic content.</p>
  <p>I'm interested in pure css solution. Is there any?</p>