title: Html show scroll only if bigger than max-height
body: <p>I wanna show scroll only if is bigger than max-height. But it seems the scroll is always enable</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div style="text-align: left; font-size: 1.5rem; max-height: 7rem; overflow-y: auto;"&gt;
    Some text
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>image example in my case</p>
  
  <p><a href="https://i.stack.imgur.com/0w0LE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0w0LE.png" alt="enter image description here"></a></p>