Skip to content

Commit c1ce2a8

Browse files
authored
[css-scroll-anchoring-1] Fix anchor selection step. (#12342)
* Fix anchor selection step. Closes #11748 * Fix indentation
1 parent fb11f3a commit c1ce2a8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

css-scroll-anchoring-1/Overview.bs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,12 @@ non-atomic inline element as the priority candidate.
142142
whose computed value of the 'overflow-anchor' property is ''overflow-anchor/none'',
143143
then do not select an anchor node for |S|.
144144
2. Otherwise, for each <a>priority candidate</a> |PC| in order specified,
145-
check if |PC| is a <a>viable candidate</a> in |S|. If so, select it as an
146-
anchor node and terminate.
145+
check if |PC| is a <a>viable candidate</a> in |S|.
146+
If so, perform the <a>candidate examination algorithm</a> for |PC| in |S| and terminate.
147+
148+
Note: Since the priority candidate itself is checked to be viable, the <a>candidate examination algorithm</a>
149+
is guaranteed to select at least the candidate node itself.
150+
147151
3. Otherwise, for each DOM child |N| of the element or document associated with |S|,
148152
perform the <a>candidate examination algorithm</a> for |N| in |S|,
149153
and terminate if it selects an anchor node.
@@ -345,3 +349,4 @@ Changes Since the Feb 11 2020 Working Draft</h3>
345349

346350
* Added definitions of [=viable candidate=] and [=priority candidate=].
347351
* Clarified interaction between scroll anchoring and [=scroll snapping=].
352+
* Added a step to run <a>candidate examination algorithm</a> on viable priority candidates.

0 commit comments

Comments
 (0)