You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-nav-1/Overview.bs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1018,9 +1018,10 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1018
1018
1019
1019
and return if the result is <code>false</code>.</span>
1020
1020
3. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return
1021
-
<span class=cssapi>* Else if the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var> is not ''spatial-navigation-action/focus''
1022
-
and <var>eventTarget</var><a>can be manually scrolled</a>,
1023
-
then <a>directionally scroll the element</a><var>eventTarget</var> in <var>direction</var> and return.</span>
1021
+
<span class=cssapi>* Else if the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var>
1022
+
is not ''spatial-navigation-action/focus''
1023
+
and <var>eventTarget</var><a>can be manually scrolled</a>,
1024
+
then <a>directionally scroll the element</a><var>eventTarget</var> in <var>direction</var> and return.</span>
1024
1025
* Else, fall back to the next step.
1025
1026
* Else, fall back to the next step.
1026
1027
5. Let <var>container</var> be the nearest ancestor of <var>eventTarget</var> that is a <a>spatial navigation container</a>.
@@ -1185,8 +1186,7 @@ run the following steps:
1185
1186
1. If <var>candidates</var> is <a spec=infra for=set>empty</a>, return <code>null</code>
1186
1187
2. If <var>candidates</var> contains a single item, return that item
1187
1188
3. Let <var>insiders</var> be the subset of <var>candidates</var>
1188
-
* If <var>searchOrigin</var> is the <a>spatial navigation container</a>,
1189
-
whose <a>boundary box</a>'s
1189
+
* If <var>searchOrigin</var> is the <a>spatial navigation container</a>, whose <a>boundary box</a>'s
1190
1190
* top edge is below the top edge of <a>inside area</a> of <var>searchOrigin</var> if <var>dir</var> is {{SpatialNavigationDirection/down}}
1191
1191
* bottom edge is above the bottom edge of <a>inside area</a> of <var>searchOrigin</var> if <var>dir</var> is {{SpatialNavigationDirection/up}}
1192
1192
* right edge is left of the right edge of <a>inside area</a> of <var>searchOrigin</var> if <var>dir</var> is {{SpatialNavigationDirection/left}}
@@ -1216,7 +1216,7 @@ run the following steps:
1216
1216
* right edge is left of the left edge of <var>searchOrigin</var>'s <a>boundary box</a> if <var>dir</var> is {{SpatialNavigationDirection/left}}
1217
1217
* left edge is right of the right edge of <var>searchOrigin</var>'s <a>boundary box</a> if <var>dir</var> is {{SpatialNavigationDirection/right}}
1218
1218
* the item partially overlaps with <var>searchOrigin</var> and
1219
-
its two edges which are orthogonal to <var>dir</var> should be on the navigation direction of the respective ones of <var>searchOrigin</var>.
1219
+
its two edges which are orthogonal to <var>dir</var> should be on the navigation direction of the respective ones of <var>searchOrigin</var>.
1220
1220
2. For each <var>candidate</var> in <var>candidates</var>,
1221
1221
[=find the shortest distance=] between <var>searchOrigin</var>.
1222
1222
3. Return the item of the <var>candidates</var> set that has the smallest distance.
0 commit comments