Skip to content

Commit a894041

Browse files
author
Jihye Hong
committed
[css-nav-1] Modify the condition of candidates for custom spatial navigation container
Close #3965
1 parent 26ea51b commit a894041

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

css-nav-1/Overview.bs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,8 +1088,8 @@ run the following steps:
10881088
Note: <var>focusables</var> may be empty
10891089
4. 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.
10931093
5. 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:
11271127
3. 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

Comments
 (0)