Re: [csswg-drafts] Tweak the distance function to prioritize elements that are aligned (#3361)

---

Migrated from https://github.com/WICG/spatial-navigation/issues/122#issuecomment-436945866
Originally created by @hugoholgersson on *Thu, 08 Nov 2018 10:23:15 GMT*

---
I also like the idea of calculating the distances between elements' centroids. But how do we define the centroid of inline elements that span a line break (i.e non-rectangular elements)? 

~~~~
  ..................XXXX
  XXXXXXXX..............
~~~~

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3361#issuecomment-443616383 using your GitHub account

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