Skip to content

Commit c6e94df

Browse files
committed
[css-scroll-snap-1] Require scroll-into-view animations for re-snapping to a different box. #4609
1 parent de7e973 commit c6e94df

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

css-scroll-snap-1/Overview.bs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,18 @@ Re-snapping After Layout Changes</h4>
411411
the scroll container must be re-snapped to that same snap position
412412
after the content change.
413413

414+
Scrolling required by a re-snap operation to a new or different box
415+
must behave and animate the same way as
416+
any other scroll-into-view operation,
417+
including honoring controls such as 'scroll-behavior'.
418+
Scrolling behavior for re-snapping to the same box as before
419+
however, is UA-defined.
420+
The UA may, for example,
421+
when snapped to the start of a section,
422+
choose not to animation the scroll to the section’s new position
423+
as content is dynamically added earlier in the document
424+
in order to create the illusion of not scrolling.
425+
414426
<div class="example">
415427
In the following example,
416428
the log console,
@@ -1204,6 +1216,24 @@ Changes Since 31 January 2019 CR {#changes-20190131}
12041216
<li id="change-2019-clarify-writing-mode">
12051217
Specified which writing mode is used to resolve 'scroll-snap-align'.
12061218
(<a href="https://github.com/w3c/csswg-drafts/issues/3815">Issue 3815</a>)
1219+
<li id="change-2019-resnap-animation">
1220+
Require re-snapping to a new element to animate the same way
1221+
as any other scroll-into-view operation.
1222+
(<a href="https://github.com/w3c/csswg-drafts/issues/4609">Issue 4609</a>)
1223+
<blockquote>
1224+
<p><ins>Scrolling required by a re-snap operation to a new or different box
1225+
must behave and animate the same way as
1226+
any other scroll-into-view operation,
1227+
including honoring controls such as 'scroll-behavior'.
1228+
Scrolling behavior for re-snapping to the same box as before
1229+
however, is UA-defined.
1230+
The UA may, for example,
1231+
when snapped to the start of a section,
1232+
choose not to animation the scroll to the section’s new position
1233+
as content is dynamically added earlier in the document
1234+
in order to create the illusion of not scrolling.
1235+
</ins></p>
1236+
</blockquote>
12071237
</ul>
12081238

12091239
Changes since the <a href="https://www.w3.org/TR/2019/CR-css-scroll-snap-1-20190131/">31 January 2019 Candidate Recommendation</a> include:

0 commit comments

Comments
 (0)