Skip to content

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

@jonjohnjohnson

Description

@jonjohnjohnson

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 showcasing 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions