You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scroll-behavior property specifies the scrolling behavior for a scrolling box, when scrolling happens due to navigation or CSSOM scrolling APIs. Any other scrolls, e.g. those that are performed by the user, are not affected by this property.
cc @zcorpan@RByers
There is a discussion about customizing scroll behavior of Element.focus(), whatwg/html#834.
Could we also customize the scroll behavior of sequential focus navigation with scroll-behavior?
CSSOM Spec says about
scroll-behavior
, :Does "navigation" here also include the sequential focus navigation triggered by pressing Tab?
Maybe the sequential focus navigation is "Any other scrolls".
When I see the HTML Spec and the implementation in Firefox related to
scroll-behavior
, it only works for the navigation to a fragment, not for the sequential focus navigation.But interesting thing is, in Chrome,
scroll-behavior
works both for the navigation to a fragment and the sequential focus navigation. You can see how it works here.I think the sequential focus navigation also need to be affected by this property.
The text was updated successfully, but these errors were encountered: