Skip to content

Commit 0655924

Browse files
author
Jihye Hong
committed
[css-nav-1] Modiy more precise description for setting search origin
1 parent 671a248 commit 0655924

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

css-nav-1/Overview.bs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,19 +1089,17 @@ run the following steps:
10891089
then return it.
10901090
3. Otherwise, return <var>searchOrigin</var>.
10911091

1092-
If the focus status changes not by the spatial navigation, the <var>searchOrigin</var> is set from the <var>old focus target</var> as following:
1093-
1. If <var>old focus target</var> becomes out of the viewport by scrolling,
1094-
then let <var>searchOrigin</var> be the scroll container which triggers the scroll behavior.
1095-
2. If <var>old focus target</var> becomes
1092+
If the status of <var>old focus target</var> changed not by the spatial navigation,
1093+
the <var>searchOrigin</var> is set from the <var>old focus target</var> as following:
1094+
1. If <var>old focus target</var> becomes
10961095
<a>actually disabled</a> or
10971096
<a>expressly inert</a> or
10981097
not <a>being rendered</a>,
10991098
then let <var>searchOrigin</var> be the [=boundary box=] of <var>old focus target</var>.
1100-
3. If <var>old focus target</var> is <a>removed</a>,
1101-
then let <var>searchOrigin</var> be the [=boundary box=] of <var>old focus target</var>.
1102-
4. Otherwise,
1103-
let <var>searchOrigin</var> be the viewport of <var>old focus target</var>'s Document.
1104-
1099+
2. If <var>old focus target</var> is <a>removed</a>,
1100+
then let <var>searchOrigin</var> be the [=boundary box=] of <var>old focus target</var> with the position of <var>old focus target</var> when it existed.
1101+
3. Otherwise,
1102+
let <var>searchOrigin</var> be the viewport of <var>old focus target</var>'s <a>spatial navigation container</a>.
11051103
</div>
11061104

11071105
<div algorithm="to find focusable areas">

0 commit comments

Comments
 (0)