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
@@ -729,10 +732,9 @@ The <a event>navbeforefocus</a> event occurs before spatial navigation changes t
729
732
730
733
The <a event>navnotarget</a> event occurs before going up the tree to search candidates in the
731
734
nearest ancestor <a>spatial navigation container</a> when spatial navigation has failed to find any candidate
732
-
within the current <a>spatial navigation container</a>.
733
-
734
-
If the <a>spatial navigation container</a> is scrollable, the event occurs when there isn't any candidate in it
735
-
and it cannot be scrolled at the same time.
735
+
within the current <a>spatial navigation container</a>,
736
+
and in cases where the <a>spatial navigation container</a> is scrollable,
737
+
when it cannot be scrolled further.
736
738
737
739
<table class="def">
738
740
<tbody>
@@ -924,9 +926,9 @@ from a local logical grouping,
924
926
only looking for focusable elements outside of the grouping
925
927
if a suitable one cannot be found inside it (see [[#nav]] for details).
926
928
927
-
Such groupings are called <dfn lt="spatial navigation focus container | spatial navigation focus containers | spatial navigation container | spatial navigation containers">spatial navigation focus containers</dfn>.
929
+
Such groupings are called <dfn>spatial navigation containers</dfn>.
928
930
929
-
<span class=cssapi>By default, </span><a>spatial navigation containers</a>(same with spatial navigation focus container) are established by:
931
+
<span class=cssapi>By default, </span><a>spatial navigation containers</a> are established by:
930
932
* The viewport of a <a for="/">browsing context</a>
931
933
(not limited to the <a>top-level browsing context</a>)
932
934
@@ -977,9 +979,9 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
977
979
within <var>candidates</var> in <var>direction</var> starting from <var>searchOrigin</var>
978
980
2. 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
979
981
<span class=api><a>fire an event</a> named <a event>navbeforefocus</a> at <var>eventTarget</var> using {{NavigationEvent}} with:
980
-
* Set {{NavigationEvent/dir}} to <var>direction</var>
981
-
* Set {{NavigationEvent/relatedTarget}} to <var>bestCandidate</var>
982
-
* Set<code>bubbles</code> and <code>cancelable</code> attributes to <code>true</code>
982
+
* {{NavigationEvent/dir}} set to <var>direction</var>
983
+
* {{NavigationEvent/relatedTarget}} set to <var>bestCandidate</var>
984
+
* the<code>bubbles</code> and <code>cancelable</code> attributes set to <code>true</code>
983
985
984
986
and return if the result is <code>false</code>.</span>
985
987
3. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return
@@ -995,9 +997,9 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
995
997
* Else,
996
998
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
997
999
<span class=api><a>fire an event</a> named <a event>navnotarget</a> at <var>eventTarget</var> using {{NavigationEvent}} with:
998
-
* Set {{NavigationEvent/dir}} to <var>direction</var>
999
-
* Set {{NavigationEvent/relatedTarget}} to <var>container</var>
1000
-
* Set<code>bubbles</code> and <code>cancelable</code> attributes to <code>true</code>
1000
+
* {{NavigationEvent/dir}} set to <var>direction</var>
1001
+
* {{NavigationEvent/relatedTarget}} set to <var>container</var>
1002
+
* the<code>bubbles</code> and <code>cancelable</code> attributes set to <code>true</code>
1001
1003
1002
1004
and return if the result is <code>false</code>.</span>
1003
1005
2.
@@ -1015,9 +1017,9 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1015
1017
within <var>candidates</var> in <var>direction</var> starting from <var>searchOrigin</var>.
1016
1018
10. 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
1017
1019
<span class=api><a>fire an event</a> named <a event>navbeforefocus</a> at <var>eventTarget</var> using {{NavigationEvent}} with:
1018
-
* Set {{NavigationEvent/dir}} to <var>direction</var>
1019
-
* Set {{NavigationEvent/relatedTarget}} to <var>bestCandidate</var>
1020
-
* Set<code>bubbles</code> and <code>cancelable</code> attributes to <code>true</code>
1020
+
* {{NavigationEvent/dir}} set to <var>direction</var>
1021
+
* {{NavigationEvent/relatedTarget}} set to <var>bestCandidate</var>
1022
+
* the<code>bubbles</code> and <code>cancelable</code> attributes set to <code>true</code>
1021
1023
1022
1024
and return if the result is <code>false</code>.</span>
1023
1025
11. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return.
0 commit comments