Skip to content

Commit a28f698

Browse files
committed
[css-scroll-snap-1] Use html instead of body: scroll snap doesn't propagate from body.
1 parent a4f6cea commit a28f698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-scroll-snap-1/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
494494
that is not obscured by a fixed-position toolbar.
495495

496496
<pre class="lang-css">
497-
body {
497+
html {
498498
overflow-x: auto;
499499
overflow-y: hidden;
500500
scroll-snap-type: x mandatory;

0 commit comments

Comments
 (0)