Skip to content

Commit

Permalink
[css-scroll-anchoring][editorial] Improve/export the dfn for 'anchor …
Browse files Browse the repository at this point in the history
…priority candidate'.
  • Loading branch information
tabatkins committed Dec 3, 2024
1 parent 49d4155 commit 14c93d7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions css-scroll-anchoring-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ following criteria:
* |C| is not in an <a>excluded subtree</a>
* None of the ancestors of |C| up to |S| are in an <a>excluded subtree</a>

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

1. The [=DOM anchor=] of the [=focused area of the document=], if such an anchor
is text editable ([=editable=], [=editing host=], [=mutable=] <{textarea}>, or
[=mutable=] <{input}> with a type that allows text entry).
2. An element containing the current [=active match=] of the
find-in-page user-agent algorithm. If the match spans multiple elements, then
consider only the first such element.

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

0 comments on commit 14c93d7

Please sign in to comment.