Skip to content

Commit 8158a65

Browse files
committed
[css-scroll-snap] scroll-padding is restricted to non-negative values. Fixes #1084.
1 parent 25ff6ee commit 8158a65

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,9 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
427427
the area of the scrollport that is used as the <a>alignment container</a>
428428
for the <a>scroll snap areas</a> when calculating <a>snap positions</a>.
429429

430-
Values are interpreted as for 'padding',
431-
and specify inward offsets from each edge of the scrollport.
430+
Values must be non-negative
431+
and are interpreted as for 'padding',
432+
specifying inward offsets from each edge of the scrollport.
432433

433434
<div class="example">
434435
In this example, 'scroll-padding' is used to center slideshow images

0 commit comments

Comments
 (0)