From 70a35bd491cf99afb27a55d02e3474cf90d7c544 Mon Sep 17 00:00:00 2001 From: Vladimir Levin Date: Mon, 16 Jun 2025 14:35:33 -0400 Subject: [PATCH 1/2] Fix anchor selection step. Closes #11748 --- css-scroll-anchoring-1/Overview.bs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/css-scroll-anchoring-1/Overview.bs b/css-scroll-anchoring-1/Overview.bs index 2f5fcb212c80..5776d344a750 100644 --- a/css-scroll-anchoring-1/Overview.bs +++ b/css-scroll-anchoring-1/Overview.bs @@ -142,8 +142,12 @@ non-atomic inline element as the priority candidate. whose computed value of the 'overflow-anchor' property is ''overflow-anchor/none'', then do not select an anchor node for |S|. 2. Otherwise, for each priority candidate |PC| in order specified, - check if |PC| is a viable candidate in |S|. If so, select it as an - anchor node and terminate. + check if |PC| is a viable candidate in |S|. + If so, perform the candidate examination algorithm for |PC| in |S| and terminate. + +Note: Since the priority candidate itself is checked to be viable, the candidate examination algorithm +is guaranteed to select at least the candidate node itself. + 3. Otherwise, for each DOM child |N| of the element or document associated with |S|, perform the candidate examination algorithm for |N| in |S|, and terminate if it selects an anchor node. @@ -345,3 +349,4 @@ Changes Since the Feb 11 2020 Working Draft * Added definitions of [=viable candidate=] and [=priority candidate=]. * Clarified interaction between scroll anchoring and [=scroll snapping=]. + * Added a step to run candidate examination algorithm on viable priority candidates. From 2000bd7aa03a31d923a943482047cacfc803515f Mon Sep 17 00:00:00 2001 From: Vladimir Levin Date: Mon, 16 Jun 2025 14:38:43 -0400 Subject: [PATCH 2/2] Fix indentation --- css-scroll-anchoring-1/Overview.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css-scroll-anchoring-1/Overview.bs b/css-scroll-anchoring-1/Overview.bs index 5776d344a750..67f6ca4b32a8 100644 --- a/css-scroll-anchoring-1/Overview.bs +++ b/css-scroll-anchoring-1/Overview.bs @@ -145,8 +145,8 @@ non-atomic inline element as the priority candidate. check if |PC| is a viable candidate in |S|. If so, perform the candidate examination algorithm for |PC| in |S| and terminate. -Note: Since the priority candidate itself is checked to be viable, the candidate examination algorithm -is guaranteed to select at least the candidate node itself. + Note: Since the priority candidate itself is checked to be viable, the candidate examination algorithm + is guaranteed to select at least the candidate node itself. 3. Otherwise, for each DOM child |N| of the element or document associated with |S|, perform the candidate examination algorithm for |N| in |S|,