Skip to content

Commit

Permalink
[css-nav-1] Fix alignBias definition
Browse files Browse the repository at this point in the history
Fix the mistake about `alignBias` definition depending on the original proposal.
(+ Remove trailing spaces)

Reference:
- https://wicg.github.io/spatial-navigation/tests/ux/result.html#2-add-the-factor-about-calculating-the-degree-of-alignment-between-a-candidate-and-the-search-origin
- #3388 (comment)
  • Loading branch information
Jihye Hong committed May 8, 2019
1 parent db06d5f commit bfe77ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions css-nav-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,9 @@ The meaning of each term is as follows:
<dt><var>alignBias</var>:
<dd>
* If the <var>dir</var> is {{SpatialNavigationDirection/left}} or {{SpatialNavigationDirection/right}},
<var>projectedOverlap</var> / height of the axis-aligned bounding box of <var>candidate</var>
<var>projectedOverlap</var> / height of the axis-aligned bounding box of <var>reference</var>
* Else if the <var>dir</var> is {{SpatialNavigationDirection/up}} or {{SpatialNavigationDirection/down}},
<var>projectedOverlap</var> / width of the axis-aligned bounding box of <var>candidate</var>
<var>projectedOverlap</var> / width of the axis-aligned bounding box of <var>reference</var>

<dt><var>projectedOverlap</var>:
<dd>
Expand Down

0 comments on commit bfe77ef

Please sign in to comment.