Skip to content

Commit 8401d61

Browse files
committed
[css-scroll-snap] Tweaks to Choosing Snap Points per <https://lists.w3.org/Archives/Public/www-style/2016Jun/0020.html>
1 parent d77997a commit 8401d61

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

css-scroll-snap/Overview.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -764,14 +764,14 @@ Choosing Snap Positions {#choosing}
764764
<a>snap positions</a> should be penalized in the selection process
765765
according to the amount of other-axis scrolling they would cause.
766766

767-
* <a>Snap positions</a> should be ignored if their elements are far outside of the “corridor”
768-
that the <a>snapport</a> defines as it moves through the <a>scrollable overflow region</a>
767+
* In order to prevent a far-offscreen element
768+
from having difficult-to-understand effects
769+
on the scroll position,
770+
<a>snap positions</a> should be ignored if their elements are far outside of the “corridor”
771+
that the <a>snapport</a> defines as it moves through the <a>scrollable overlow region</a>
769772
during an <a>inertial scroll</a>,
770773
or a hypothetical “corridor” in the direction of a <a>directional scroll</a>,
771774
or the <a>snapport</a> after an <a>explicit scroll</a>.
772-
(This is to prevent a far-offscreen element
773-
from having difficult-to-understand effects
774-
on the scroll position.)
775775

776776
* User agents <em>must</em> ensure that a user can “escape” a <a>snap position</a>,
777777
regardless of the scroll method.
@@ -788,7 +788,8 @@ Choosing Snap Positions {#choosing}
788788
(This implies that a <a>directional scroll</a> must always ignore the starting <a>snap positions</a>.)
789789

790790
* If a page is navigated to a fragment that defines a target element
791-
(one that would be matched by '':target''),
791+
(one that would be matched by '':target'',
792+
or the target of {{Element/scrollIntoView()}}),
792793
and that element defines some <a>snap positions</a>,
793794
the user agent should <a>snap</a> to one of that element's <a>snap positions</a>.
794795
The user agent may do this even when the <a>scroll container</a> has ''scroll-snap-type: none''.

0 commit comments

Comments
 (0)