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
If specified on a <a>scroll container</a>, the <a>scroll container</a> is required to be <a>snapped</a> to a snap position when there are no active scrolling operations. If a reachable snap position exists then the scroll container must <a>snap</a> at the termination of a scroll. If no reachable snap position exists then no <a>snapping</a> occurs.
280
+
If specified on a <a>scroll container</a>, the <a>scroll container</a> is required to be <a>snapped</a> to a snap position when there are no active scrolling operations. If a reachable snap position exists then the scroll container must <a>snap</a> at the termination of a scroll (if none exist then no <a>snapping</a> occurs).
281
281
282
282
If the content changes such that the scroll container would no longer be <a>snapped</a> (e.g. content is added, moved, deleted, resized) to the same snap position it was snapped to before the content change, the scroll container must be re-snapped. If the same snap position it was snapped to before the content change still exists (e.g. its associated element was not deleted) and is reachable, the scroll container must be re-snapped to that same snap position after the content change.
@@ -376,7 +376,7 @@ Scroll Snapport: the 'scroll-snap-padding' property {#scroll-snap-padding}
376
376
Animatable: as length, percentage, or calc
377
377
</pre>
378
378
379
-
The 'scroll-snap-padding' property defines the <dfn local-lt="snapport">scroll snapport</dfn>, a region inset from the scrollport of a <a>scroll container</a>used in calculating its <a>snap positions</a>. The snapport is used as the alignment container when calculating <a>snap positions</a>. Values are interpreted as for 'padding', and specify inward offsets from each edge of the scrollport.
379
+
The 'scroll-snap-padding' property defines the <dfn local-lt="snapport">scroll snapport</dfn>, the area of the scrollport that is used as the <a>alignment container</a>for the <a>scroll snap areas</a> when calculating <a>snap positions</a>. Values are interpreted as for 'padding', and specify inward offsets from each edge of the scrollport.
380
380
381
381
<div class="example">
382
382
In this example, scroll-snap-padding is used to center slideshow images within the portion of the scrollport that is not obscured by a fixed-position toolbar.
Issue: Should this be x/y axes, or inline/block? Starting with x/y axes for consistency with padding/area, otherwise a writing mode change would result in a axis mismatch (since padding is physical by default).
477
477
478
+
Values are defined as follows:
479
+
478
480
<dl dfn-type="value" dfn-for="scroll-snap-align">
479
481
<dt><dfn>none</dfn>
480
482
<dd>
481
483
This box does not define a <a>snap position</a> in the specified axis.
482
484
483
485
<dt><dfn>start</dfn>
484
486
<dd>
485
-
The scroll position which aligns the start edge of this box's scroll snap area with the start edge of its ancestor scroll container's region defined by 'scroll-snap-padding' in the specified axis is a <a>snap position</a> in that axis.
487
+
Start alignment of this box's <a>scroll snap area</a>
488
+
within the <a>scroll container</a>'s <a>snapport</a>
489
+
is a <a>snap position</a>
490
+
in the specified axis.
486
491
487
492
<dt><dfn>end</dfn>
488
493
<dd>
489
-
The scroll position which aligns the end edge of this box's scroll snap area with the end edge of its ancestor scroll container's region defined by 'scroll-snap-padding' in the specified axis is a <a>snap position</a> in that axis.
494
+
End alignment of this box's <a>scroll snap area</a>
495
+
within the <a>scroll container</a>'s <a>snapport</a>
496
+
is a <a>snap position</a>
497
+
in the specified axis.
490
498
491
499
<dt><dfn>center</dfn>
492
500
<dd>
493
-
The scroll position which aligns the center of this box's scroll snap area with the center of its ancestor scroll container's region defined by 'scroll-snap-padding' in the specified axis is a <a>snap position</a> in that axis.
501
+
Center alignment of this box's <a>scroll snap area</a>
502
+
within the <a>scroll container</a>'s <a>snapport</a>
503
+
is a <a>snap position</a>
504
+
in the specified axis.
494
505
</dl>
495
506
496
507
<!--
@@ -559,7 +570,7 @@ Axis vs Point-Snapping {#snap-dimensions}
559
570
-->
560
571
561
572
Appendix A: Longhands {#longhands}
562
-
=====================
573
+
==================================
563
574
564
575
Physical Longhands for 'scroll-snap-padding' {#padding-longhands-physical}
0 commit comments