Hi all, The main implementation is now submitted for review at: https://bugs.webkit.org/show_bug.cgi?id=188043
It has some issue with smooth scrolling via scrollIntoView on nested scrollers but I don't plan to work on this until the main part is merged. See https://bugs.webkit.org/show_bug.cgi?id=189907 On 20/09/2018 22:26, Frédéric Wang wrote: > Hi all, > > This email is to announce that I have started to work on (programmatic) > smooth scrolling in WebKit from the CSSOM View specification [1]. To use > this effect, web developers can pass a behavior parameter (auto, smooth, > or instant) to Element.scroll, Element.scrollTo, Element.scrollBy, > Element.scrollIntoView, Window.scroll, Window.scrollTo or > Window.scrollBy [2]. When behavior is auto, the instant/smooth > characteristic is actually taken from the value of a new CSS > scroll-behavior property [3]. This new feature will be protected by a > compile flag (enabled by default) and a runtime flag (an experimental > feature). If you are interested, you can follow advancement on Bugzilla [4]. > > Incidentally (and since that was convenient to do it before) I also > added some basic support for new ScrollIntoView options [5] [6] that > allow to specify how you want the revealed element to be aligned with > respect to its scrollable ancestors. > > Cheers, > > > Frédéric > > [1] https://drafts.csswg.org/cssom-view > [2] https://drafts.csswg.org/cssom-view/#dictdef-scrolloptions > [3] https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior > [4] https://bugs.webkit.org/show_bug.cgi?id=188043 > [5] https://bugs.webkit.org/show_bug.cgi?id=189258 > [6] https://drafts.csswg.org/cssom-view/#dictdef-scrollintoviewoptions > > _______________________________________________ > webkit-dev mailing list > webkit-dev@lists.webkit.org > https://lists.webkit.org/mailman/listinfo/webkit-dev -- Frédéric Wang - frederic-wang.fr _______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-dev