Skip to content

Commit a288a13

Browse files
committed
Emphasize the important part of the note.
1 parent 70bc038 commit a288a13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

css-scroll-snap/Overview.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,11 +686,13 @@ Snapping Boxes that Overflow the Scrollport</h4>
686686
</figure>
687687

688688
Note: If the author had instead set mandatory snap positions
689-
on the headings of each section
689+
on the <em>headings</em> of each section
690690
(rather than the sections themselves),
691691
the contents of the first and fifth sections
692692
would be partially inaccessible to the user,
693693
as the heading snap area does not extend to cover the whole section.
694+
This is why it's a bad idea to use mandatory snap positions
695+
on elements that might be widely spaced apart.
694696
</div>
695697

696698

@@ -1048,4 +1050,4 @@ Changes {#changes}
10481050
<li>Renamed 'scroll-padding' to 'scroll-padding' and extended its uses.
10491051
<li>Removed renaming issues because nobody came up with a better alternative to ''scroll-snap-type: mandatory | proximity'' or ''scroll-snap-stop: normal''.
10501052
<li>Miscellaneous clarifications.
1051-
</ul>
1053+
</ul>

0 commit comments

Comments
 (0)