Skip to content

Commit 297c537

Browse files
committed
[css-scroll-anchoring] Specify how anchoring interacts with snapping. #4830
1 parent b9a316d commit 297c537

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

css-scroll-anchoring-1/Overview.bs

+10-3
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,16 @@ 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; type:dfn; text:content area
22-
spec:css22;
22+
spec:css2;
23+
type:dfn; text:line box
24+
spec:css-sizing-3;
2325
type:property;
2426
text:max-height
2527
text:min-height
2628
text:height
2729
text:max-width
2830
text:min-width
2931
text:width
30-
type:dfn; text:line box
3132
</pre>
3233
<pre class="anchors">
3334
spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/;
@@ -75,9 +76,15 @@ For readability they have not been repeated explicitly.
7576
<h2 id='description'>
7677
Description</h2>
7778

78-
Scroll anchoring works by selecting a DOM node (the <dfn export for=scroll-anchoring>anchor node</dfn>)
79+
Scroll anchoring attempts to keep the user's view of the document stable across layout changes.
80+
It works by selecting a DOM node (the <dfn export for=scroll-anchoring>anchor node</dfn>)
7981
whose movement is used to determine adjustments to the scroll position.
8082

83+
However, if the scroll container is currently [=scroll snap|snapped=] to an element,
84+
(see [[!CSS-SCROLL-SNAP-1]])
85+
scroll anchoring is limited to adjustments that would be allowed by [=re-snapping=].
86+
87+
8188
<h3 id='anchor-node-selection'>
8289
Anchor Node Selection</h3>
8390

0 commit comments

Comments
 (0)