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
<code>insideBtn</code> is assigned to the element whose {{Element/id}} matches with <code>'button1'</code>.
650
-
But <code>outsideBtn</code> is the element with {{Element/id}}<code>'button2'</code>.
649
+
<code>innerBtn</code> is assigned to the element whose {{Element/id}} matches with <code>'button1'</code>
650
+
because the {{SpatialNavigationSearchOptions/inside}} attribute is <code>true</code>.
651
+
But if the authors don't specify {{SpatialNavigationSearchOptions/inside}} attribute,
652
+
<code>false</code> is given to it by default.
653
+
Therefore <code>outerBtn</code> is assigned to the element with {{Element/id}}<code>'button2'</code>
654
+
which is outside of <code>container</code>.
651
655
</div>
652
656
653
657
<div class=api>
@@ -1019,8 +1023,8 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
1019
1023
<span class=cssapi>* Else if the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var> is not ''spatial-navigation-action/focus''
1020
1024
and <var>eventTarget</var><a>can be manually scrolled</a>,
1021
1025
then <a>directionally scroll the element</a><var>eventTarget</var> in <var>direction</var> and return.</span>
1022
-
* Else, fallback to the next step.
1023
-
* Else, fallback to the next step.
1026
+
* Else, fall back to the next step.
1027
+
* Else, fall back to the next step.
1024
1028
5. Let <var>container</var> be the nearest ancestor of <var>eventTarget</var> that is a <a>spatial navigation container</a>.
1025
1029
6. <i>Loop</i>: Let <var>candidates</var> be the result of <a>finding focusable areas</a>
0 commit comments