Skip to content

Commit 3ba331a

Browse files
committed
[css-scroll-snap] Fix errors in scroll-snap-points-x/y definitions
1 parent 5b22c3f commit 3ba331a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,11 +365,11 @@ Scroll Snapping Coordinates: the 'scroll-snap-points-x' and 'scroll-snap-points-
365365

366366
<pre class="propdef">
367367
Name: scroll-snap-points-x, scroll-snap-points-y
368-
Value: none | repeat(<length>)
368+
Value: none | repeat( [ <<length>> | <<percentage>> ])
369369
Initial: start end
370370
Applies to: <a>scroll containers</a>
371371
Inherited: no
372-
Percentages: relative to the size of the <a>scrollable area</a> in the appropriate axis
372+
Percentages: relative to the size of the <a>snap target area</a> in the appropriate axis
373373
Computed value: as specified, with lengths made absolute and clamped (see below)
374374
Animatable: no
375375
Media: interactive
@@ -385,12 +385,12 @@ Scroll Snapping Coordinates: the 'scroll-snap-points-x' and 'scroll-snap-points-
385385
No <a>snap positions</a> are defined by this <a>scroll container</a>.
386386
Contained elements may still define <a>snap positions</a> on this <a>scroll container's</a> behalf.
387387

388-
<dt><dfn>repeat(<<length>>)</dfn>
388+
<dt><dfn>repeat([ <<length>> | <<percentage>> ])</dfn>
389389
<dd>
390390
Defines <a>snap position</a> that span the <a>scrollable area</a> in the appropriate axis,
391391
starting from the <a>start</a> edge of the <a>scrollable area</a> and recurring every <<length>> distance throughout the <a>scrollable area</a>.
392392

393-
Negative <<length>>s are invalid.
393+
Negative values are invalid.
394394
User agents must define a UA-defined minimum <<length>> greater than 0
395395
(recommended ''1px''),
396396
and clamp the computed value to that minimum.

0 commit comments

Comments
 (0)