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
@@ -1086,7 +956,7 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1086
956
1. Let <var>searchOrigin</var> be the <a>DOM anchor</a> of the <a>currently focused area of a top-level browsing context</a>.
1087
957
2. If the <a>spatial navigation starting point</a> is not <code>null</code>
1088
958
and it is inside <var>searchOrigin</var>
1089
-
then set <var>searchOrigin</var> to the <a>spatial navigation starting point</a>
959
+
then set <var>searchOrigin</var> to the <a>spatial navigation starting point</a>.
1090
960
3.
1091
961
* If <var>searchOrigin</var> is an <a>node</a>,
1092
962
let <var>eventTarget</var> be <var>searchOrigin</var>
@@ -1108,27 +978,15 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1108
978
and with it's <code>bubbles</code> and <code>cancelable</code> attributes set to <code>true</code>,
1109
979
and return if the result is <code>false</code></span>
1110
980
3. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return
1111
-
* Else if <var>eventTarget</var><a>can be manually scrolled</a>:
1112
-
1. If <a>navigation-override</a><a>is enabled</a> in the [=node document=] of <var>eventTarget</var> for the <a spec=html for="/">origin</a> of the [=active document=] of the [=top-level browsing context=], then
1113
-
<span class=api><a>fire an event</a> named <a event>navbeforescroll</a> at <var>eventTarget</var> using {{NavigationEvent}}
1114
-
with its {{NavigationEvent/dir}} set to <var>direction</var>
1115
-
and {{NavigationEvent/relatedTarget}} set to <var>eventTarget</var>
1116
-
and with it's <code>bubbles</code> and <code>cancelable</code> attributes set to <code>true</code>,
1117
-
and return if the result is <code>false</code></span>
1118
-
2. <a>Directionally scroll the element</a><var>eventTarget</var> in <var>direction</var> and return.
1119
-
* Else, fallback to the next step
981
+
* Else if <var>eventTarget</var><a>can be manually scrolled</a>, <a>directionally scroll the element</a>
982
+
<var>eventTarget</var> in <var>direction</var> and return.
983
+
* Else, fallback to the next step.
1120
984
6. Let <var>container</var> be the nearest ancestor of <var>eventTarget</var> that is a <a>spatial navigation container</a>.
1121
985
7. <i>Loop</i>: Let <var>candidates</var> be the result of <a>finding focusable areas</a>
1122
986
within <var>container</var>, excluding <var>searchOrigin</var>
1123
987
8. If <var>candidates</var> is empty:
1124
-
* If <var>container</var> is a <a>scroll container</a> that <a>can be manually scrolled</a>:
1125
-
1. If <a>navigation-override</a><a>is enabled</a> in the [=node document=] of <var>eventTarget</var> for the <a spec=html for="/">origin</a> of the [=active document=] of the [=top-level browsing context=], then
1126
-
<span class=api><a>fire an event</a> named <a event>navbeforescroll</a> at <var>eventTarget</var> using {{NavigationEvent}}
1127
-
with its {{NavigationEvent/dir}} set to <var>direction</var>
1128
-
and {{NavigationEvent/relatedTarget}} set to <var>container</var>
1129
-
and with it's <code>bubbles</code> and <code>cancelable</code> attributes set to <code>true</code>,
1130
-
and return if the result is <code>false</code></span>
1131
-
2. <a>Directionally scroll the element</a><var>container</var> in <var>direction</var> and return.
988
+
* If <var>container</var> is a <a>scroll container</a> that <a>can be manually scrolled</a>, <a>directionally scroll the element</a>
989
+
<var>container</var> in <var>direction</var> and return.
1132
990
* Else,
1133
991
1. If <a>navigation-override</a><a>is enabled</a> in the [=node document=] of <var>eventTarget</var> for the <a spec=html for="/">origin</a> of the [=active document=] of the [=top-level browsing context=], then
1134
992
<span class=api><a>fire an event</a> named <a event>navnotarget</a> at <var>eventTarget</var> using {{NavigationEvent}}
0 commit comments