[csswg-drafts] [cssom-view] For UX consistency, should history interface respect scrollport's scroll-behavior?

jonjohnjohnson has just created a new issue for https://github.com/w3c/csswg-drafts:

== [cssom-view] For UX consistency, should history interface respect scrollport's scroll-behavior? ==
https://drafts.csswg.org/cssom-view-1/#propdef-scroll-behavior

Recently, been taking advantage of `scroll-behavior: smooth`, but when either using a supporting browsers forward/back buttons or programmatically interacting with the history interface, the property/behavior isn't respected, always showing what would be the `auto` (or the old `instant`) value.

The spec says...

> The scroll-behavior property specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs

I could interpret that as meaning the behavior seen in browsers are issues with implementation, but I'm not sure. And if so, could the spec be clearer so that if a clicked "jumplink" exhibits support for the scroll-behavior property, then that same behavior would be respected if the user clicks back/forwards or performs an action that manipulates the history interface?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2454 using your GitHub account

Received on Saturday, 17 March 2018 21:16:34 UTC