title: window.scrollTo() doesn't work with overflow and 100vh height
body: <p>Let say that I have an HTML setup like this and I want to make a <code>scrollTo</code> button, as I read that the scrollTo doesn't work with <code>height: 100vh</code> and <code>overflow: auto</code></p>
  <p>How should I work around this issue?</p>
  <p><strong>NOTE</strong>: TBH I work on Reactjs, and my <code>JSX</code> file more or less looks like this HTML setup</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>.big-container {
    height: 100vh
  }
  
  .small-container {
    overflow: auto;
    height: calc(100vh-300px)
  }
  
  .smaller-container {
    overflow: auto
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/16.6.3/umd/react.production.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/16.6.3/umd/react-dom.production.min.js"&gt;&lt;/script&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  
  &lt;body&gt;
    &lt;div class="big-container"&gt;
      &lt;div class="small-container"&gt;
        &lt;div class="smaller-container"&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
          &lt;p&gt;paragraph&lt;/p&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>