Skip to content

Commit 0694e25

Browse files
committed
[css-scroll-snap] fix example
1 parent 9e9deeb commit 0694e25

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
476476
The following example aligns the center of each city
477477
to the center of the scroll container's <a>snap viewport</a>,
478478
snapping only when the city is centered in both axes:
479-
<pre>city { scroll-snap-align: center point; }</pre>
479+
<pre>city { scroll-snap-align: point center; }</pre>
480480

481481
The following example aligns the center of each photo
482482
to the center of the scroll container's <a>snap viewport</a>,
@@ -561,7 +561,7 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
561561
and no <a>scroll axis keyword</a> is specified, then
562562
the <<snap-alignment>> value
563563
applies to the scrollable axis of the affected <a>scroll container</a>.
564-
If both axes are scrollable
564+
If both axes are scrollable
565565
(i.e. both 'overflow-x' and 'overflow-y' are either ''overflow/scroll'' or ''overflow/auto''),
566566
then it applies to the block axis of the affected <a>scroll container</a>
567567
(as determined by the <a>scroll container</a>’s <a>writing mode</a>).
@@ -597,7 +597,7 @@ Scroll Snapping Alignment: the 'scroll-snap-align' property {#scroll-snap-align}
597597
so are consistent with that syntax.
598598
We chose to use this simpler syntax without lengths
599599
because the 'scroll-snap-area' concept already provides length offsets--
600-
but does so in a smarter way, that degrades better on small screens
600+
but does so in a smarter way, that degrades better on small screens
601601
(see above) because it provides more information (a box, rather than a point) to the UA.
602602
We could have also added lengths here,
603603
but it would provide multiple ways to do the same thing,

0 commit comments

Comments
 (0)