This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Jumping the user to and from anchors is a jarring experience. Suggested DOM function signature: element.scrollIntoView(alignWithTop, scrollDuration, scrollSpeed, scrollEasing)
This options here demonstrate what I'm referencing. Unlike this code, however, the values wouldn't need data-* attributes. https://github.com/cferdinandi/smooth-scroll#global-settings
Kevin, Do you mean this bug for webdriver as Comment 1 doesnt appear to use the webdriver API or do you mean it for DOM?
(In reply to David Burns :automatedtester from comment #2) > Kevin, > > Do you mean this bug for webdriver as Comment 1 doesnt appear to use the > webdriver API or do you mean it for DOM? Apologies. For DOM.
The spec supports scrollIntoView({behavior:"smooth"}) http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface Alternatively you can set scroll-behavior: smooth; CSS property, which also scrolls smoothly when navigating to a fragment identifier. http://dev.w3.org/csswg/cssom-view/#smooth-scrolling:-the-'scroll-behavior'-property Please reopen if this does not sufficient.