Skip to content

Commit b1e43ba

Browse files
author
Jihye Hong
committed
[css-nav-1] Modify how to select candidates for partially overlapped case
Modify the way to select candidates for partially overlapped element with the search origin element. More detail condition about how elements are overlapped leaves to the UA.
1 parent 4137318 commit b1e43ba

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

css-nav-1/Overview.bs

+9-3
Original file line numberDiff line numberDiff 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">
397396
JavaScript 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.

0 commit comments

Comments
 (0)