Skip to content

Commit 377dccc

Browse files
author
Jihye Hong
committed
[css-nav-1] More precise description when the focus target loses the focus
Search origin should be set again if the focus target loses the focus. More detailed cases are (1) the focus target removed from the page (2) the focus target becomes invisible or disabled Therefore, more description about above cases had been added. (1) Remove Reference: * https://html.spec.whatwg.org/#data-model * https://html.spec.whatwg.org/multipage/infrastructure.html#nodes-are-removed
1 parent 1d9bf0c commit 377dccc

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

css-nav-1/Overview.bs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,17 @@ spec: ui-events; urlPrefix: https://w3c.github.io/uievents/;
2525
spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/;
2626
urlPrefix: interaction.html
2727
type: dfn;
28+
text: actually disabled; url: #concept-element-disabled
29+
text: being rendered
30+
text: control group
31+
text: currently focused area of a top-level browsing context
2832
text: DOM anchor
33+
text: expressly inert
2934
text: focusable area
30-
text: currently focused area of a top-level browsing context
3135
text: sequential focus navigation order
3236
text: sequential focus navigation starting point
3337
text: sequential navigation search algorithm
34-
text: control group
38+
text: removed; url: #nodes-are-removed
3539
urlPrefix: dom.html
3640
type: dfn;
3741
text: the body element; url: #the-body-element-2
@@ -1085,12 +1089,15 @@ run the following steps:
10851089
then return it.
10861090
3. Otherwise, return <var>searchOrigin</var>.
10871091

1088-
If the focus changes not by the spatial navigation, the <var>searchOrigin</var> is set from the <var>old focus target</var> as following:
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:
10891093
1. If <var>old focus target</var> becomes out of the viewport by scrolling,
10901094
then let <var>searchOrigin</var> be the scroll container which triggers the scroll behavior.
1091-
2. If <var>old focus target</var> is inert,
1095+
2. If <var>old focus target</var> becomes
1096+
<a>actually disabled</a> or
1097+
<a>expressly inert</a> or
1098+
not <a>being rendered</a>,
10921099
then let <var>searchOrigin</var> be the [=boundary box=] of <var>old focus target</var>.
1093-
3. If the property of <var>old focus target</var> changes to <code>display: none</code> or <code>visibility: hidden</code>,
1100+
3. If <var>old focus target</var> is <a>removed</a>,
10941101
then let <var>searchOrigin</var> be the [=boundary box=] of <var>old focus target</var>.
10951102
4. Otherwise,
10961103
let <var>searchOrigin</var> be the viewport of <var>old focus target</var>'s Document.

0 commit comments

Comments
 (0)