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-scroll-snap] Swap order of strictness and axis sections and add subheadings. This keeps related sections together (the mandatory-snapping warning and resnapping requirements together with capturing rules) and also puts the required parameter first.
<a>snap positions</a> are enforced on the <a>scroll container</a>
265
-
(by forcing an adjustment to the scroll position).
258
+
how <a href="#snap-strictness">strictly</a> it <a>snaps</a>,
259
+
and <a href="#snap-axis">which axes</a> are considered.
266
260
If no strictness value is specified, ''proximity'' is assumed.
267
-
Values are defined as follows:
268
-
269
-
<dl dfn-type="value" dfn-for="scroll-snap-type">
270
-
<dt><dfn>none</dfn>
271
-
<dd>
272
-
If specified on a <a>scroll container</a>, the <a>scroll container</a> must not <a>snap</a>.
273
-
274
-
<dt><dfn>mandatory</dfn>
275
-
<dd>
276
-
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).
277
261
278
-
279
-
<dt><dfn>proximity</dfn>
280
-
<dd>
281
-
If specified on a <a>scroll container</a>, the <a>scroll container</a> may <a>snap</a> to a snap position at the termination of a scroll, at the discretion of the UA given the parameters of the scroll.
282
-
</dl>
283
-
284
-
A box <dfn export>captures snap positions</dfn>
285
-
if it is a <a>scroll container</a>
286
-
<em>or</em> has a value other than ''scroll-snap-type/none'' for 'scroll-snap-type'.
287
-
If a box’s nearest <a lt="captures snap positions">snap-position capturing</a> ancestor
288
-
on its <a>containing block chain</a>
289
-
is a <a>scroll container</a> with a non-''scroll-snap-type/none'' value for 'scroll-snap-type',
290
-
that is the box’s <dfn export local-lt="snap container">scroll snap container</dfn>.
291
-
Otherwise, the box has no <a>scroll snap container</a>,
292
-
and its <a>snap positions</a> do not trigger <a>snapping</a>.
262
+
<h4 id="snap-axis">
263
+
Scroll Snap Axis: the ''x'', ''y'', ''block'', ''inline'', and ''both'' values</h4>
293
264
294
265
The <dfn noexport lt="axis value">axis values</dfn>
295
266
specify what axis(es) are affected by <a>snap positions</a>,
<a>snap positions</a> are enforced on the <a>scroll container</a>
306
+
(by forcing an adjustment to the scroll position).
307
+
Values are defined as follows:
308
+
309
+
<dl dfn-type="value" dfn-for="scroll-snap-type">
310
+
<dt><dfn>none</dfn>
311
+
<dd>
312
+
If specified on a <a>scroll container</a>, the <a>scroll container</a> must not <a>snap</a>.
313
+
314
+
<dt><dfn>mandatory</dfn>
315
+
<dd>
316
+
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).
317
+
318
+
319
+
<dt><dfn>proximity</dfn>
320
+
<dd>
321
+
If specified on a <a>scroll container</a>, the <a>scroll container</a> may <a>snap</a> to a snap position at the termination of a scroll, at the discretion of the UA given the parameters of the scroll.
322
+
</dl>
323
+
328
324
Advisement:
329
325
Authors should use mandatory snap positions with consideration of
330
326
varyingly-sized screens and (if applicable) varying-sized content.
0 commit comments