Skip to content

Commit 75a6640

Browse files
committed
[css-scroll-snap] Add some recommendations for snapping to :target elements on navigation.
1 parent f51dee8 commit 75a6640

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,12 @@ Choosing Snap Positions {#choosing}
841841

842842
Issue: This would prevent space-travel effects. I think we should remove this.
843843

844+
* If a page is navigated to a fragment that defines a target element
845+
(one that would be matched by '':target''),
846+
and that element defines some <a>snap positions</a>,
847+
the user agent should snap to one of that element's <a>snap positions</a>.
848+
The user agent may do this even when the <a>scroll container</a> has ''scroll-snap-type: none''.
849+
844850
Issue: Does tie-resolution need to be specified? Inertial and semantic scrolls are easy--
845851
just choose the next one in the scroll direction--
846852
but explicit scrolls don't have a direction.

0 commit comments

Comments
 (0)