<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Consider implementing Document.scrollingElement"
   href="https://bugs.webkit.org/show_bug.cgi?id=143609#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Consider implementing Document.scrollingElement"
   href="https://bugs.webkit.org/show_bug.cgi?id=143609">bug 143609</a>
              from <span class="vcard"><a class="email" href="mailto:benjamin&#64;webkit.org" title="Benjamin Poulain &lt;benjamin&#64;webkit.org&gt;"> <span class="fn">Benjamin Poulain</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=143609#c5">comment #5</a>)
<span class="quote">&gt; I'd rather just fix the damn bug too.  The problem is that we're finding
&gt; lots of sites that have been forced to guess at the scrollingElement using a
&gt; UA check (here's an example:
&gt; <a href="https://github.com/google/closure-library/blob/">https://github.com/google/closure-library/blob/</a>
&gt; 32365aba43acb36c5d693256ef5d4dbe3bddddfe/closure/goog/dom/dom.js#L632, and
&gt; Facebook had something similar).  I need some good/simple/reliable guidance
&gt; for those sites to migrate to the spec-compatible behavior.  After a number
&gt; of failed attempts, I don't see any path for switching blink to the correct
&gt; behavior without first adding such an API.  Thoughts?</span >

The problem here is the UA check for detecting behavior.

If it is just a matter of feature detection, one could change scrollTop/Left on body, observe which viewport has been modified, then restore the scroll position.

What I do not like about &quot;scrollingElement&quot; is that it looks like a temporary hack. It goes against keeping the platform simple.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>