Skip to content

Commit 6dc4b57

Browse files
committed
[css-overflow-3] Make new subsection for scroll-behavior and friends
1 parent 0a14f02 commit 6dc4b57

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

css-overflow-3/Overview.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,18 @@ Expanding Clipping Bounds: the 'overflow-clip-margin' property</h3>
708708
It now also affects [=scroll containers=],
709709
but only to shrink the clipping edge.
710710

711+
<h2 id=scrolling-behaviors>
712+
Scrolling Behaviors and Animations</h3>
713+
714+
CSS provides several controls over how scrolling behaves when triggered.
715+
* <a href="https://www.w3.org/TR/css-scroll-snap/">CSS Scroll Snap</a> allows defining "snap positions",
716+
which are scroll positions to which the [=scroll container=] is biased to land.
717+
* <a href="https://www.w3.org/TR/css-overscroll/">CSS Overscroll Behavior</a>
718+
allows controlling what happens when scrolling past the end of the scrollable area.
719+
* 'scroll-behavior', defined below, controls whether programmatic scrolling animates smoothly or not.
720+
721+
Note: For animating other things in conjunction with scrolling, see [[SCROLL-ANIMATIONS-1]].
722+
711723
<h3 id=smooth-scrolling caniuse=css-scroll-behavior>
712724
Smooth Scrolling: the 'scroll-behavior' Property</h3>
713725

0 commit comments

Comments
 (0)