Skip to content

Commit afaa2bb

Browse files
authored
[css-scroll-anchoring-1] Reduce the scope of focused element (w3c#5470)
1 parent b4ce42b commit afaa2bb

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

css-scroll-anchoring-1/Overview.bs

+12-2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/;
3838
type: dfn;
3939
text:DOM anchor
4040
text:focused area of the document
41+
text:active match; url: fip-active-match
42+
urlPrefix: form-control-infrastructure.html
43+
type: dfn;
44+
text:mutable; url: concept-fe-mutable
45+
spec: html; urlPrefix: https://w3c.github.io/editing/docs/execCommand/;
46+
urlPrefix: index.html
47+
type: dfn;
48+
text:editable
4149
</pre>
4250

4351
<h2 id=intro>
@@ -113,8 +121,10 @@ following criteria:
113121

114122
Some elements are considered to be <dfn
115123
id="anchor-priority-candidates">priority candidates</dfn> for anchor selection:
116-
1. The [=DOM anchor=] of the [=focused area of the document=].
117-
2. An element containing the current active selected match of the
124+
1. The [=DOM anchor=] of the [=focused area of the document=], if such an anchor
125+
is text editable ([=editable=], [=editing host=], [=mutable=] <{textarea}>, or
126+
[=mutable=] <{input}> with a type that allows text entry).
127+
2. An element containing the current [=active match=] of the
118128
find-in-page user-agent algorithm. If the match spans multiple elements, then
119129
consider only the first such element.
120130

0 commit comments

Comments
 (0)