Skip to content

Commit 3f7adf1

Browse files
committed
[css-scroll-anchoring-1] Add condition to not select scroll anchor when not scrolled from origin
1 parent 7adba8c commit 3f7adf1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

css-scroll-anchoring-1/Overview.bs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Abstract: This spec also proposes an API for web developers to opt-out of this b
1919

2020
<pre class=link-defaults>
2121
spec:css-box-3; type:dfn; text:content area
22+
spec:cssom-view-1; type:dfn; text:scrolling area
2223
spec:css2;
2324
type:property;
2425
text:max-height
@@ -79,7 +80,9 @@ In some cases, a scrolling box may not select any anchor node.
7980
1. If |S| is associated with an element
8081
whose computed value of the 'overflow-anchor' property is ''overflow-anchor/none'',
8182
then do not select an anchor node for |S|.
82-
2. Otherwise, for each DOM child |N| of the element or document associated with |S|,
83+
2. If |S| is not scrolled away from the origin of its <a>scrolling area</a> in its
84+
<a>block flow direction</a>, then do not select an anchor node for |S|.
85+
3. Otherwise, for each DOM child |N| of the element or document associated with |S|,
8386
perform the <a>candidate examination algorithm</a> for |N| in |S|,
8487
and terminate if it selects an anchor node.
8588
</div>

0 commit comments

Comments
 (0)