Skip to content

Commit ff41558

Browse files
committed
[css-scroll-snap] Specify that scroll containers automatically trap snap points. Clarify that this works on the containing-block chain. Add an issue for trapping only one axis.
1 parent 0a47ef9 commit ff41558

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ED: https://drafts.csswg.org/css-scroll-snap/
99
Editor: Tab Atkins-Bittner, Google, http://xanthir.com/contact/
1010
Editor: Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact
1111
Abstract: A brief description of an alternate model for scroll-snapping.
12-
Ignored Terms: snap position, snap positions, inertial scroll, inertial scrolls, semantic scroll, semantic scrolls, scrollable area, scroll-group-align
12+
Ignored Terms: snap position, snap positions, inertial scroll, inertial scrolls, semantic scroll, semantic scrolls, scrollable area, scroll-group-align, containing block chain
1313
</pre>
1414

1515
<pre class="link-defaults">
@@ -220,6 +220,13 @@ Scroll Snapping Model {#snap-model}
220220
as coordinates of the <a>scrollable area</a>
221221
with the 'scroll-snap-points-x' and 'scroll-snap-points-y' properties.
222222

223+
<a>Snap positions</a> must only affect the nearest ancestor
224+
(on the element's <a>containing block chain</a>)
225+
<a>scroll container</a>.
226+
227+
Issue: Or should a <a>scroll container</a> be allowed to process only one axis-worth of <a>snap positions</a>,
228+
leaving the rest for a <a>scroll container</a> higher in the tree?
229+
223230
Scroll Snapping Container {#snap-container}
224231
=========================
225232

@@ -296,7 +303,7 @@ Scroll Snapping Rules: the 'scroll-snap-type' property {#snap-type}
296303
<dd>
297304
Identical to ''scroll-snap-type/none'',
298305
except that if this is specified on a non-<a>scroll container</a>,
299-
it "traps" all <a>snap positions</a> from its descendants,
306+
it "traps" all <a>snap positions</a> from its <a>containing block chain</a> descendants,
300307
preventing them from propagating up to an ancestor <a>scroll container</a>.
301308

302309
Issue: This is proposed to resolve concerns

0 commit comments

Comments
 (0)