Skip to content

Commit dad8e2b

Browse files
committed
[css-ui] Resolve Issue 29 nav-* directional properties prose fixes, ID selector syntax,unmatched behavior
1 parent 54a614e commit dad8e2b

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

css-ui/Overview.bs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,13 +1546,16 @@ Note: The 'nav-index' property is at risk.
15461546
<dt>auto</dt>
15471547
<dd>The user agent automatically determines which element to navigate the focus to in response to directional navigational input.</dd>
15481548
<dt>&lt;id&gt;</dt>
1549-
<dd><p>The &lt;id&gt; value consists of a ''#'' character followed by an identifier,
1550-
similar to a fragment identifier in a URL.
1551-
It indicates the element to which the focus is navigated to in response to directional navigation input respective to the specific property.
1549+
<dd><p>The &lt;id&gt; value is an ID selector [[SELECT]].
1550+
In response to directional navigation input corresponding to the property,
1551+
the focus is navigated to the first element in tree order matching the selector.
15521552

1553-
If the &lt;id&gt; refers to the currently focused element,
1553+
If this refers to the currently focused element,
15541554
the directional navigation input respective to the nav- property is ignored &mdash;
15551555
there is no need to refocus the same element.
1556+
1557+
If no element matches the selector,
1558+
the user agent automatically determines which element to navigate the focus to.
15561559
</dd>
15571560
<dt>&lt;target-name&gt;</dt>
15581561
<dd>

css-ui/Overview.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,13 +2195,16 @@ <h4 class="heading settled" data-level=8.2.2 id=nav-dir><span class=secno>8.2.2.
21952195
<dt>auto</dt>
21962196
<dd>The user agent automatically determines which element to navigate the focus to in response to directional navigational input.</dd>
21972197
<dt>&lt;id&gt;</dt>
2198-
<dd><p>The &lt;id&gt; value consists of a <span class=css>#</span> character followed by an identifier,
2199-
similar to a fragment identifier in a URL.
2200-
It indicates the element to which the focus is navigated to in response to directional navigation input respective to the specific property.
2198+
<dd><p>The &lt;id&gt; value is an ID selector <a data-biblio-type=informative data-link-type=biblio href=#biblio-select title=SELECT>[SELECT]</a>.
2199+
In response to directional navigation input corresponding to the property,
2200+
the focus is navigated to the first element in tree order matching the selector.
22012201

2202-
<p>If the &lt;id&gt; refers to the currently focused element,
2202+
<p>If this refers to the currently focused element,
22032203
the directional navigation input respective to the nav- property is ignored —
22042204
there is no need to refocus the same element.</p>
2205+
2206+
<p>If no element matches the selector,
2207+
the user agent automatically determines which element to navigate the focus to.</p>
22052208
</dd>
22062209
<dt>&lt;target-name&gt;</dt>
22072210
<dd>

0 commit comments

Comments
 (0)