@@ -204,8 +204,8 @@ Scroll Snapping Model {#snap-model}
204204 <a>scroll container</a>
205205 on the element's <a>containing block chain</a> .
206206
207- Scroll Snapping Container {#snap-container}
208- =========================
207+ Capturing Scroll Snap Areas: Properties on the scroll container {#snap-container}
208+ ===========================
209209
210210<!--
211211████████ ██ ██ ████████ ████████
@@ -408,15 +408,15 @@ Scroll Snapping Window: the 'scroll-snap-padding' property {#snap-padding}
408408 Initial : 0
409409 Applies to : <a>scroll containers</a>
410410 Inherited : no
411- Percentages : relative to the corresponding axis of the <a>scroll container</a>’s visual viewport
411+ Percentages : relative to the corresponding dimension of the <a>scroll container</a>’s visual viewport
412412 Computed value : as specified, with lengths made absolute
413- Animatable : yes
413+ Animatable : as length, percentage, or calc
414414 Media : interactive
415415 </pre>
416416
417417 The 'scroll-snap-padding' property defines the <dfn local-lt="snap window">scroll snap window</dfn> --
418- the area of the viewport that is used as the <a>alignment container</a>
419- when aligning a <a>scroll snap area </a> to its <a>snap position </a> .
418+ the area of the visual viewport that is used as the <a>alignment container</a>
419+ for the <a>scroll snap areas </a> when calculating <a>snap positions </a> .
420420 Values are interpreted as for 'padding' ,
421421 and specify inward offsets from each edge of the visual viewport.
422422
@@ -446,8 +446,8 @@ Scroll Snapping Window: the 'scroll-snap-padding' property {#snap-padding}
446446 all of the <a href="#longhands"><css>scroll-snap-padding-*</css> longhands</a>
447447 in one declaration.
448448
449- Element-based Snapping {#element}
450- ======================
449+ Defining Scroll Snap Positions: Properties on the scrolling content {#element}
450+ ==============================
451451
452452<!--
453453 ███ ████████ ████████ ███
@@ -469,17 +469,18 @@ Scroll Snapping Margin: the 'scroll-snap-margin' property {#scroll-snap-areas}
469469 Applies to : all elements
470470 Inherited : no
471471 Computed value : as specified, with lengths made absolute
472- Animatable : see individual properties
472+ Animatable : as length
473473 Media : interactive
474474 </pre>
475475
476- Specifies the <dfn lt="scroll snap area" local-lt="snap area">scroll snap area</dfn>
476+ The 'scroll-snap-margin' property defines
477+ the <dfn lt="scroll snap area" local-lt="snap area">scroll snap area</dfn>
477478 that is used for snapping this box to the viewport.
478479 The <<length>> values give outsets
479- (similar to 'margin' or 'border-image-outset' ).
480- The <a>scroll snap area</a> is the bounding box of the transformed border box,
480+ (interpreted as for 'margin' or 'border-image-outset' ).
481+ The <a>scroll snap area</a> is the rectangular bounding box of the transformed border box,
481482 plus the specified outsets,
482- in the <a>scroll container’s</a> coordinate space.
483+ axis-aligned in the <a>scroll container’s</a> coordinate space.
483484
484485 Note: This ensures that the <a>scroll snap area</a> is always rectangular and axis-aligned
485486 to the <a>scroll container’s</a> coordinate space.
@@ -513,10 +514,11 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-alignm
513514 Media : interactive
514515 </pre>
515516
516- Specifies the element's <a>snap position</a> as an alignment of
517+ The 'scroll-snap-align' property specifies
518+ the box's <a>snap position</a> as an alignment of
517519 its <a>snap area</a> (as the <a>alignment subject</a> )
518520 within its <a>snap container's</a> <a>snap window</a> (as the <a>alignment container</a> ).
519- The two values specify the snapping behavior in the <a>inline axis</a> and <a>block axis</a> ,
521+ The two values specify alignment in the <a>inline axis</a> and <a>block axis</a> ,
520522 respectively.
521523 If only one value is specified,
522524 the second value defaults to the same value.
@@ -546,7 +548,7 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-alignm
546548 </pre>
547549 </div>
548550
549- The <dfn export>scroll alignment values</dfn> are defined as follows:
551+ Values are defined as follows:
550552
551553 <dl dfn-type=value dfn-for="scroll-snap-align">
552554 <dt> <dfn>none</dfn>
@@ -557,19 +559,22 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-alignm
557559 <dd>
558560 Start alignment of this box's <a>scroll snap area</a>
559561 within the <a>scroll container</a> 's <a>snap window</a>
560- is a valid <a>snap position</a> .
562+ is a valid <a>snap position</a>
563+ in the specified axis.
561564
562565 <dt> <dfn>end</dfn>
563566 <dd>
564567 End alignment of this box's <a>scroll snap area</a>
565568 within the <a>scroll container</a> 's <a>snap window</a>
566- is a valid <a>snap position</a> .
569+ is a valid <a>snap position</a>
570+ in the specified axis.
567571
568572 <dt> <dfn>center</dfn>
569573 <dd>
570574 Center alignment of this box's <a>scroll snap area</a>
571575 within the <a>scroll container</a> 's <a>snap window</a>
572- is a valid <a>snap position</a> .
576+ is a valid <a>snap position</a>
577+ in the specified axis.
573578 </dl>
574579
575580 If the element's <a>scroll container</a> is <a>point-snapping</a> ,
@@ -1046,8 +1051,9 @@ Physical Longhands for 'scroll-snap-padding' {#padding-longhands-physical}
10461051 Name : scroll-snap-padding-top, scroll-snap-padding-right, scroll-snap-padding-bottom, scroll-snap-padding-left
10471052 Value : <<length>> | <<percentage>>
10481053 Initial : 0
1049- Applies to : all elements
1054+ Applies to : <a>scroll containers</a>
10501055 Inherited : no
1056+ Percentage : relative to the corresponding dimension of the <a>scroll container</a>’s visual viewport
10511057 Computed value : as specified, with lengths made absolute
10521058 Animatable : as length, percentage, or calc
10531059 Media : interactive
@@ -1065,8 +1071,9 @@ Flow-relative Longhands for 'scroll-snap-padding' {#padding-longhands-logical}
10651071 Name : scroll-snap-padding-inline-start, scroll-snap-padding-block-start, scroll-snap-padding-inline-end, scroll-padding-block-end
10661072 Value : <<length>> | <<percentage>>
10671073 Initial : 0
1068- Applies to : all elements
1074+ Applies to : <a>scroll containers</a>
10691075 Inherited : no
1076+ Percentages : relative to the corresponding dimension of the <a>scroll container</a>’s visual viewport
10701077 Computed value : as specified, with lengths made absolute
10711078 Animatable : as length, percentage, or calc
10721079 Media : interactive
@@ -1083,6 +1090,7 @@ Flow-relative Longhands for 'scroll-snap-padding' {#padding-longhands-logical}
10831090 Initial : 0
10841091 Applies to : all elements
10851092 Inherited : no
1093+ Percentages : relative to the corresponding dimension of the <a>scroll container</a>’s visual viewport
10861094 Computed value : as specified, with lengths made absolute
10871095 Animatable : as length, percentage, or calc
10881096 Media : interactive
@@ -1162,3 +1170,18 @@ This specification does not expose any information whatsoever
11621170that is not already exposed to the DOM directly;
11631171it just makes scrolling slightly more functional.
11641172There are no new privacy or security considerations.
1173+
1174+ Acknowledgements {#acknowledgements}
1175+ ================
1176+
1177+ Many thanks to
1178+ David Baron,
1179+ Simon Fraser,
1180+ Håkon Wium Lie,
1181+ Edward O'Connor,
1182+ François Remy,
1183+ Majid Valpour,
1184+ potentially some anonymous Microsoft engineers (?),
1185+ and most especially Robert O'Callahan
1186+ for their proposals and recommendations,
1187+ which have been incorporated into this document.
0 commit comments