File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -391,7 +391,6 @@ the following requirements apply:
391391 as responses to pressing arrow keys would also be possibilities.
392392 </div>
393393
394-
395394<div class=api>
396395<h2 id="js-api">
397396JavaScript API</h2>
@@ -1227,8 +1226,15 @@ run the following steps:
12271226 * bottom edge is above the top edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/up}}
12281227 * right edge is left of the left edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/left}}
12291228 * left edge is right of the right edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/right}}
1230- * the item partially overlaps with <var> searchOrigin</var> and
1231- its two edges which are orthogonal to <var> dir</var> should be on the navigation direction of the respective ones of <var> searchOrigin</var> .
1229+ * the item partially overlaps with <var> searchOrigin</var> and its <a>boundary box</a> 's
1230+ * top edge is below the top edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/down}}
1231+ * bottom edge is above the bottom edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/up}}
1232+ * right edge is left of the right edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/left}}
1233+ * left edge is right of the left edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/right}}
1234+
1235+ NOTE: More detail condition about how the element is overlapped with the search origin affects the sequence of focus movement.
1236+ The sequence of focus movement is related to UX, so it depends on the UA-defined mechanism.
1237+
12321238 2. For each <var ignore=""> candidate</var> in <var> candidates</var> ,
12331239 [=find the shortest distance=] between <var> searchOrigin</var> .
12341240 3. Return the item of the <var> candidates</var> set that has the smallest distance.
You can’t perform that action at this time.
0 commit comments