Skip to content

Commit bfe77ef

Browse files
author
Jihye Hong
committed
[css-nav-1] Fix alignBias definition
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 - w3c#3388 (comment)
1 parent db06d5f commit bfe77ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-nav-1/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,9 +1222,9 @@ The meaning of each term is as follows:
12221222
<dt><var>alignBias</var>:
12231223
<dd>
12241224
* If the <var>dir</var> is {{SpatialNavigationDirection/left}} or {{SpatialNavigationDirection/right}},
1225-
<var>projectedOverlap</var> / height of the axis-aligned bounding box of <var>candidate</var>
1225+
<var>projectedOverlap</var> / height of the axis-aligned bounding box of <var>reference</var>
12261226
* Else if the <var>dir</var> is {{SpatialNavigationDirection/up}} or {{SpatialNavigationDirection/down}},
1227-
<var>projectedOverlap</var> / width of the axis-aligned bounding box of <var>candidate</var>
1227+
<var>projectedOverlap</var> / width of the axis-aligned bounding box of <var>reference</var>
12281228

12291229
<dt><var>projectedOverlap</var>:
12301230
<dd>

0 commit comments

Comments
 (0)