You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The visual viewport of this <adata-link-type="dfn" href="#scroll-container">scroll container</a> may come to rest on a snap position at the termination of a scroll at the discretion of the UA given the parameters of the scroll.
383
-
<p>If the content changes such that the visual viewport would no longer rest on a snap position (e.g. content is added, moved, deleted, resized), the scroll offset may be modified to maintain alignment of the visual viewport with a snap position. If the visual viewport was already aligned with a snap position prior to the content change and that snap position still exists (e.g. its associated element was not deleted) and if the user agent elects to modify the scroll offset to maintain snap position alignment, that same snap position should be satisfied after the content change.</p>
383
+
<p>If the content changes such that the visual viewport would no longer rest on a snap position (e.g. content is added, moved, deleted, resized), the scroll offset may be modified to maintain alignment of the visual viewport with a snap position. If the visual viewport was already aligned with a snap position prior to the content change and that snap position still exists (e.g. its associated element was not deleted) and if the user agent elects to modify the scroll offset to maintain snap position alignment, that same snap position must be satisfied after the content change.</p>
<p>The <aclass="property" data-link-type="propdesc" href="#propdef-scroll-snap-padding">scroll-snap-padding</a> property defines the <adata-link-type="dfn" href="#snap-alignment-container">snap alignment container</a>, a region inset from the visual viewport of a <adata-link-type="dfn" href="#scroll-container">scroll container</a> used in calculating its <adata-link-type="dfn" href="#scroll-snap-position">snap positions</a>. The snap alignment container is used as the alignment container when calculating valid <adata-link-type="dfn" href="#scroll-snap-position">snap positions</a>.</p>
Specifies the outset of the element’s snap area from the axis-aligned bounding box of the transformed border box, in the <adata-link-type="dfn" href="#scroll-container">scroll container’s</a> coordinate space. Outsets are applied to this bounding box, not the border box.
458
458
<pclass="note" role="note">Note: This ensures that the <adata-link-type="dfn" href="#scroll-snap-area">scroll snap area</a> is always rectangular and axis-aligned to the <adata-link-type="dfn" href="#scroll-container">scroll container’s</a> coordinate space.</p>
0 commit comments