Skip to content

[css-nav-1] Improve the distance function #3384

@frivoal

Description

@frivoal

Migrated from WICG/spatial-navigation#114
Originally created by @jihyerish on Thu, 11 Oct 2018 08:34:46 GMT


The distance function in the spec which measures the distance between two elements causes unexpected focus movement.
It needs to consider:

  • Multiple candidate elements are adjacent to the starting point element (currently focused element)
  • Transformed elements
  • The element with rounded corner

So the function needs some experiment for getting the more reasonable result and simplifying.

Also, the function in the polyfill doesn't match exactly with the spec; it needs to be fixed.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions