Skip to content

[css-nav-1] Consider candidates revealed after one scroll step? #3383

@frivoal

Description

@frivoal

Migrated from WICG/spatial-navigation#56
Originally created by @hugoholgersson on Fri, 27 Apr 2018 14:26:33 GMT


When finding the candidate set, Chrome's spatnav includes focusables that would become visible after one (document*) scroll step in the navigated direction.

* We don't do this for scrollable divs but I consider that a bug. I believe spatnav should treat both document scrolling and element scrolling in the same way.

This behavior is not spec'ed. Should we?

Downsides:

  • Trickier implementation.

Upsides:

  • Better UX.
  1. One keystroke instead of two: [scroll + focus] instead of [scroll] + [focus].
  2. Focused element (and its "focus ring", if enabled) is always visible (it cannot be scrolled out).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions