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
<h2 id="scroll-snap-area">Scroll Snap Area: the 'scroll-snap-area' property</h2>
258
258
259
-
The 'scroll-snap-area' property defines the <a>scroll-snap-area</a> on elements within a <a>scroll container</a>, used in calculating <a>snap positions</a> for that scroll container.
259
+
The 'scroll-snap-area' property defines the <a>scrollsnaparea</a> on elements within a <a>scroll container</a>, used in calculating <a>snap positions</a> for that scroll container.
<p>This property is a shorthand property that sets all of the <aclass="property" data-link-type="propdesc">scroll-snap-padding-*</a> longhands in one declaration.</p>
<p>The <aclass="property" data-link-type="propdesc" href="#propdef-scroll-snap-area">scroll-snap-area</a> property defines a region for an element used in calculating <adata-link-type="dfn" href="#scroll-snap-position">snap positions</a> for its ancestor scroll container.</p>
422
+
<p>The <aclass="property" data-link-type="propdesc" href="#propdef-scroll-snap-area">scroll-snap-area</a> property defines the <adata-link-type="dfn" href="#scroll-snap-area">scroll snap area</a> on elements within a <adata-link-type="dfn" href="#scroll-container">scroll container</a>, used in calculating <adata-link-type="dfn" href="#scroll-snap-position">snap positions</a> for that scroll container.</p>
Specifies the outset of the element’s snap area from the axis-aligned bounding box of the transformed specified 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 specified box. If the box argument is omitted it defaults to border-box.
457
-
<pclass="note" role="note">Note: This ensures that the scroll snap area is always rectangular and axis-aligned to the <adata-link-type="dfn" href="#scroll-container">scroll container’s</a> coordinate space.</p>
457
+
<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>
458
458
</dl>
459
+
<p>This property is a shorthand property that sets all of the <aclass="property" data-link-type="propdesc">scroll-snap-area-*</a> longhands in one declaration.</p>
<p>The <aclass="property" data-link-type="propdesc" href="#propdef-scroll-snap-align">scroll-snap-align</a> property specifies how a scroll container’s region specified by <aclass="property" data-link-type="propdesc" href="#propdef-scroll-snap-padding">scroll-snap-padding</a> should align with descendent elements' scroll snap area. The two values specify the snapping behavior in the x and y axes, respectively. If only one value is specified, the second value defaults to the same value.</p>
461
462
<pclass="issue" id="issue-f7391e31"><aclass="self-link" href="#issue-f7391e31"></a> 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). </p>
0 commit comments