[csswg-drafts] Improve the distance function (#3371)

frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== Improve the distance function ==
---

Migrated from https://github.com/WICG/spatial-navigation/issues/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.




Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3371 using your GitHub account

Received on Monday, 3 December 2018 07:42:07 UTC