w3c/csswg-drafts

[cssom-view] Does scroll-behavior affect the sequential focus navigation?

Open

#1 783 ouverte le 7 sept. 2017

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)HTML (545 forks)batch import
Help Wantedcssom-view-1

Métriques du dépôt

Stars
 (3 546 stars)
Métriques de merge PR
 (Merge moyen 87j 7h) (24 PRs mergées en 30 j)

Description

CSSOM Spec says about scroll-behavior, :

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.

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.

Guide contributeur