[Webkit-unassigned] [Bug 226434] window.scrollTo(null) throws an exception
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 1 18:11:55 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=226434
--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
(In reply to Chris Dumez from comment #3)
> (In reply to Chris Dumez from comment #2)
> > Chrome and Firefox are not getting the polypill for window.scrollTo, unclear
> > why.
>
> I think we are getting the polyfill because of this check:
> if (!("scrollBehavior" in e.documentElement.style) || !0 ===
> t.__forceSmoothScrollPolyfill__) {
>
> We seem to be failing this: "scrollBehavior" in e.documentElement.style
On WebKit trunk, in the develop menu, there is an experimental feature called CSSOM View Smooth Scrolling, which is off by default. If I turn it on, then icann.org stops using the polyfill and instead calls our native window.scrollTo(). I have verified that window.scrollTo(null) doesn't throw in such case.
Anyway, this is not really a but with our window.scrollTo implementation. The Website merely makes the decision NOT to use our window.scrollTo implementation because we don't support CSSOM View Smooth Scrolling.
Simon may know more about CSSOM View Smooth Scrolling, I have no idea what that is or if we're close to enabling it.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210602/0d8b59c3/attachment-0001.htm>
More information about the webkit-unassigned
mailing list