title: Confusion about `Element.prototype.scrollTo`
body: <p>I've always used <code>window.scrollTo</code> and never knew about <code>Element.prototype.scrollTo</code>. I am surprised by the discovery that it exists for <code>Element</code> too and works just fine.</p>
  
  <p>But I tried looking for its documentation and couldn't find. My question is, should I safely use it without having to worry about browser quirks? Is there a documentation available for it? Or I should assume <code>window.scrollTo</code> <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo" rel="nofollow noreferrer">documentation</a> applies to <code>Element.prototype.scrollTo</code> as well?</p>
  
  <p>I am doing</p>
  
  <pre><code>document.querySelector('.my-div').scrollTo({
      left: 10,
      top: 100,
      behavior: 'smooth'
  })
  </code></pre>
  
  <p>Will this syntax support in all browsers? Including smooth scrolling?</p>