Skip to content

Commit 14c93d7

Browse files
committed
[css-scroll-anchoring][editorial] Improve/export the dfn for 'anchor priority candidate'.
1 parent 49d4155 commit 14c93d7

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

css-scroll-anchoring-1/Overview.bs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,16 @@ following criteria:
119119
* |C| is not in an <a>excluded subtree</a>
120120
* None of the ancestors of |C| up to |S| are in an <a>excluded subtree</a>
121121

122-
Some elements are considered to be <dfn
123-
id="anchor-priority-candidates">priority candidates</dfn> for anchor selection:
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
128-
find-in-page user-agent algorithm. If the match spans multiple elements, then
129-
consider only the first such element.
122+
Some elements are considered to be
123+
<dfn id="anchor-priority-candidates" export lt="anchor priority candidate" local-lt="priority candidate">anchor priority candidates</dfn>
124+
for anchor selection:
125+
126+
1. The [=DOM anchor=] of the [=focused area of the document=], if such an anchor
127+
is text editable ([=editable=], [=editing host=], [=mutable=] <{textarea}>, or
128+
[=mutable=] <{input}> with a type that allows text entry).
129+
2. An element containing the current [=active match=] of the
130+
find-in-page user-agent algorithm. If the match spans multiple elements, then
131+
consider only the first such element.
130132

131133
Note that if the <a>priority candidate</a> is a non-<a>atomic inline</a>
132134
element, then instead consider its nearest ancestor element that is not a

0 commit comments

Comments
 (0)