title: How to allow user to scroll up with css snap?
body: <p>I have a chatbox that can contain a lot of messages. Each time a new message is sent, the div scrolls up to the bottom thanks to css snap property.</p>
  <p>However, if I want to scroll up, the div will automatically go back to bottom. How to allow a persisting scroll up, and go back to bottom only if a new message is added to the list?</p>
  <p>Here is a code idea:</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-css lang-css prettyprint-override"><code>.container{
    max-height: 100px;
    overflow-y: scroll;
    overscroll-behavior-y: contain;
    scroll-snap-type: y proximity;
  }
  
  textarea{
      scroll-snap-align: start;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container"&gt;
    &lt;div&gt;message 1&lt;/div&gt;
     &lt;div&gt;message 2&lt;/div&gt;
     &lt;div&gt;message 3&lt;/div&gt;
     &lt;div&gt;message 4&lt;/div&gt;
     &lt;div&gt;message 5&lt;/div&gt;
     &lt;div&gt;message 6&lt;/div&gt;
     &lt;div&gt;message 7&lt;/div&gt;
     &lt;div&gt;message 8&lt;/div&gt;
     &lt;div&gt;message 9&lt;/div&gt;
     &lt;div&gt;message 10&lt;/div&gt;
    &lt;textarea placeholder="write message"&gt;&lt;/textarea&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Thanks!</p>