Skip to content

Commit fa54baf

Browse files
committed
[css-snappoints] Adding advisement to authors warning about dangers of mandatory snapping
1 parent 50ddfab commit fa54baf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

css-snappoints/Overview.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,15 @@ Scroll Snap Types: the 'scroll-snap-type' property {#scroll-snap-type}
293293
If the content changes such that the scroll container would no longer be <a>snapped</a> (e.g. content is added, moved, deleted, resized) to the same snap position it was snapped to before the content change and that same snap position still exists (e.g. its associated element was not deleted) and is reachable, the scroll container must be re-snapped to that same snap position after the content change.
294294
</dl>
295295

296+
Advisement:
297+
Authors should use mandatory snap positions with consideration of
298+
varyingly-sized screens and (if applicable) varying-sized content.
299+
In particular, although access to snapped elements larger than the viewport
300+
is <a href="#snap-overflow">handled by the UA</a>,
301+
if authors assign mandatory snapping to non-adjacent siblings,
302+
content in between can become inaccessible
303+
in cases where it is longer than the screen.
304+
296305
<!--
297306
████████ ███ ████████ ████████ ████ ██ ██ ██████
298307
██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██

0 commit comments

Comments
 (0)