@@ -764,14 +764,14 @@ Choosing Snap Positions {#choosing}
764
764
<a>snap positions</a> should be penalized in the selection process
765
765
according to the amount of other-axis scrolling they would cause.
766
766
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>
769
772
during an <a>inertial scroll</a> ,
770
773
or a hypothetical “corridor” in the direction of a <a>directional scroll</a> ,
771
774
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.)
775
775
776
776
* User agents <em> must</em> ensure that a user can “escape” a <a>snap position</a> ,
777
777
regardless of the scroll method.
@@ -788,7 +788,8 @@ Choosing Snap Positions {#choosing}
788
788
(This implies that a <a>directional scroll</a> must always ignore the starting <a>snap positions</a> .)
789
789
790
790
* 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()}} ),
792
793
and that element defines some <a>snap positions</a> ,
793
794
the user agent should <a>snap</a> to one of that element's <a>snap positions</a> .
794
795
The user agent may do this even when the <a>scroll container</a> has ''scroll-snap-type: none'' .
0 commit comments