Skip to content

Commit 4e24ba8

Browse files
committed
[css-scroll-snap-1] Swap the axises of scroll-snap-align to be block then inline, like every other logical property in existence. Fixes #2232.
1 parent 553df56 commit 4e24ba8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

css-scroll-snap-1/Overview.bs

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Motivating Examples {#examples}
101101
/* Specifies that the center of each photo
102102
should align with the center of the scroll
103103
container in the X axis when snapping */
104-
scroll-snap-align: center none;
104+
scroll-snap-align: none center;
105105
}
106106
.photoGallery {
107107
width: 500px;
@@ -130,7 +130,7 @@ Motivating Examples {#examples}
130130

131131
<figcaption>
132132
The layout of the scroll container’s contents in the example.
133-
The snapport is represented by the red rectangle, and the snap area is represented by the yellow rectangle. Since the scroll-snap-align is “center” in the X axis, a snap position is established at each scroll position which aligns the X-center of the snapport (represented by a red dotted line) with the X-center of a snap area (represented by a yellow dotted line).
133+
The snapport is represented by the red rectangle, and the snap area is represented by the yellow rectangle. Since the scroll-snap-align is “center” in the inline (horizontal) axis, a snap position is established at each scroll position which aligns the X-center of the snapport (represented by a red dotted line) with the X-center of a snap area (represented by a yellow dotted line).
134134
</figcaption>
135135
</figure>
136136
</div>
@@ -146,7 +146,7 @@ Motivating Examples {#examples}
146146
.page {
147147
/* Defines the top of each page as the
148148
edge that should be used for snapping */
149-
scroll-snap-align: none start;
149+
scroll-snap-align: start none;
150150
}
151151
.docScroller {
152152
width: 500px;
@@ -466,7 +466,7 @@ Scroll Snapport: the 'scroll-padding' property {#scroll-padding}
466466
right: 0;
467467
}
468468
img {
469-
scroll-snap-align: center none;
469+
scroll-snap-align: none center;
470470
}
471471
</pre>
472472
</div>
@@ -553,7 +553,7 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
553553
its <a>snap area</a> (as the <a>alignment subject</a>)
554554
within its <a>snap container’s</a> <a>snapport</a> (as the <a>alignment container</a>).
555555
The two values specify the snapping alignment
556-
in the <a>inline axis</a> and <a>block axis</a>, respectively.
556+
in the <a>block axis</a> and <a>inline axis</a>, respectively.
557557
If only one value is specified, the second value defaults to the same value.
558558

559559
Values are defined as follows:

0 commit comments

Comments
 (0)