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
[css-snappoints] Adding scroll-snap-area. Included mechanism to specify box which I think was just accidentally omitted from the alternate proposal since there is prose referring to a specified box.
<h2id="scroll-snap-type">Scroll Snap Types: the 'scroll-snap-type' property</h2>
172
172
173
-
The ''scroll-snap-type'' property is used to define how strictly a <a>scroll container's</a> visual viewport should rest on <a>snap positions</a>. It intentionally does not specify nor mandate any precise animations or physics used to enforce those snap points; this is left up to the user agent.
173
+
The ''scroll-snap-type'' property defines how strictly a <a>scroll container's</a> visual viewport should rest on <a>snap positions</a>. It intentionally does not specify nor mandate any precise animations or physics used to enforce those snap points; this is left up to the user agent.
The visual viewport of this <a>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. 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 this guarantee.
199
199
</dl>
200
200
201
+
<h2id="scroll-snap-area">Scroll Snap Area: the 'scroll-snap-area' property</h2>
202
+
203
+
The 'scroll-snap-area' property defines a region for an element which will be used in calculating <a>snap positions</a> for its ancestor scroll container.
Specifies the outset of the element's snap area from the axis-aligned bounding box of the transformed specified box, in the <a>scroll container's</a> coordinate space. Outsets are applied to this bounding box, not the specified box. If the box argument is omitted it defaults to border-box.
221
+
222
+
Note: This ensures that the scroll snap area is always rectangular and axis-aligned to the <a>scroll container's</a> coordinate space.
223
+
</dl>
224
+
201
225
<h2id="scroll-snap-destination">Scroll Snap Destination: the 'scroll-snap-destination' property</h2>
202
226
203
227
The 'scroll-snap-destination' property is used to define the x and y coordinate within the <a>scroll container's</a> visual viewport
0 commit comments