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
+7-11
Original file line number
Diff line number
Diff line change
@@ -1024,10 +1024,10 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1024
1024
set <var>eventTarget</var> be <a>the body element</a> if it is not <code>null</code>
1025
1025
or to the <a>document element</a> otherwise.
1026
1026
4. <ul>
1027
-
<span class=cssapi><li>If <var>eventTarget</var> is <a>scroll container</a>
1027
+
<li class=cssapi>If <var>eventTarget</var> is <a>scroll container</a>
1028
1028
and the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var> is ''spatial-navigation-action/scroll''
1029
1029
and <var>eventTarget</var>[=can be manually scrolled=],
1030
-
then [=directionally scroll the element=]<var>eventTarget</var> and return.</li></span>
1030
+
then [=directionally scroll the element=]<var>eventTarget</var> and return.</li>
1031
1031
<li><span class=cssapi>Else,</span> if <var>eventTarget</var> is either a <a>scroll container</a> or the <a>document</a>
1032
1032
1. Let <var>candidates</var> be the result of <a>finding focusable areas</a>
1033
1033
within <var>eventTarget</var>
@@ -1037,16 +1037,14 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1037
1037
</span>
1038
1038
2.
1039
1039
<ul>
1040
-
<span class=cssapi><li>If
1040
+
<li class=cssapi>If
1041
1041
the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var> is not ''spatial-navigation-action/focus''
1042
1042
and <var>eventTarget</var><a>can be manually scrolled</a>,
1043
-
then <a>directionally scroll the element</a><var>eventTarget</var> in <var>direction</var> and return.</li></span>
1043
+
then <a>directionally scroll the element</a><var>eventTarget</var> in <var>direction</var> and return.</li>
1044
1044
<li><span class=cssapi>Else </span>if <var>candidates</var> contains at least 1 item:
1045
1045
1. Let <var>bestCandidate</var> be the result of <a>selecting the best candidate</a>
1046
1046
within <var>candidates</var> in <var>direction</var> starting from <var>searchOrigin</var>
1047
-
<p class=api>
1048
1047
2. <a>Dispatches navbeforefocus event</a> at <var>eventTarget</var> with <var>direction</var> and <var>bestCandidate</var>.
1049
-
</p>
1050
1048
3. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return
1051
1049
</li>
1052
1050
<li>Else, fall back to the next step.</li>
@@ -1064,12 +1062,11 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1064
1062
excluding <var>eventTarget</var>
1065
1063
</span>
1066
1064
7. If <var>candidates</var> is empty:
1067
-
<ul>
1068
-
<span class=cssapi><li>If the computed value of the 'spatial-navigation-action' property on <var>container</var> is not ''spatial-navigation-action/focus''
1065
+
<li class=cssapi>If the computed value of the 'spatial-navigation-action' property on <var>container</var> is not ''spatial-navigation-action/focus''
1069
1066
and <var>container</var> is a <a>scroll container</a> that <a>can be manually scrolled</a>,
1070
1067
<a>directionally scroll the element</a><var>container</var> in <var>direction</var> and return.
1071
-
</li></span>
1072
-
<span class=cssapi><li>Else,</li></span>
1068
+
</li>
1069
+
<li class=cssapi>Else,</li>
1073
1070
1. <a>Dispatches navnotarget event</a> at <var>eventTarget</var> with <var>direction</var> and <var>container</var>.
1074
1071
2.
1075
1072
* If <var>container</var> is the <a>document element</a> of the <a>top-level browsing context</a>,
@@ -1087,7 +1084,6 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1087
1084
within <var>candidates</var> in <var>direction</var> starting from <var>eventTarget</var>.
1088
1085
9. <a>Dispatches navbeforefocus event</a> at <var>eventTarget</var> with <var>direction</var> and <var>bestCandidate</var>.
1089
1086
10. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return.
0 commit comments