@@ -1088,8 +1088,8 @@ run the following steps:
10881088 Note: <var> focusables</var> may be empty
108910894. Let <var> insideArea</var> be
10901090 * the <a>optimal viewing region</a> of <var> C</var> if <var> C</var> is a <a>scroll container</a> ,
1091- * the viewport of C 's <a for="/">browsing context</a> if <var> C</var> is a <a>Document</a> ,
1092- * the <a>border box </a> of <var> C</var> otherwise.
1091+ * the viewport of <var> C </var> 's <a for="/">browsing context</a> if <var> C</var> is a <a>Document</a> ,
1092+ * the <a>optimal viewing region </a> of <var> C</var> 's nearest ancestor <a>scroll container</a > otherwise.
109310935. Let <var> visibles</var> be the subset of items in <var> focusables</var>
10941094 whose <a>boundary box</a>
10951095 is at least partly within <var> insideArea</var> .
@@ -1127,10 +1127,9 @@ run the following steps:
112711273. Let <var> insideArea</var> be
11281128 * the <a>optimal viewing region</a> of <var> searchOrigin</var> if <var> searchOrigin</var> is a <a>scroll container</a> ,
11291129 * the viewport if <var> searchOrigin</var> is a <a>Document</a> ,
1130- * the <a>border box</a> of <var> searchOrigin</var> otherwise.
1131- 4. Let <var> insiders</var> be the subset of <var> candidates</var> items
1132- whose [=DOM anchor=] are descendants of <var> searchOrigin</var>
1133- and whose <a>boundary box</a> 's
1130+ * the <a>optimal viewing region</a> of <var> searchOrigin</var> ’s nearest ancestor <a>scroll container</a> otherwise.
1131+ 4. Let <var> insiders</var> be the subset of <var> candidates</var>
1132+ whose <a>boundary box</a> 's
11341133 * top edge is below the top edge of <var> insideArea</var> if <var> dir</var> is {{SpatialNavigationDirection/down}}
11351134 * bottom edge is above the bottom edge of <var> insideArea</var> if <var> dir</var> is {{SpatialNavigationDirection/up}}
11361135 * right edge is left of the right edge of <var> insideArea</var> if <var> dir</var> is {{SpatialNavigationDirection/left}}
0 commit comments