Skip to content

Commit 1ba30ee

Browse files
committed
[css-scroll-snap] Step-by-step de-duping of re-snapping requirements. Step 5: Fix up condition so that it includes layout changes; remove condition that the scroll container must have been previously snapped, since in proximity cases we need to re-evaluate on content changes regardless of previous snapping condition
1 parent d4e4d3b commit 1ba30ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-scroll-snap/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,9 @@ Scroll Snapping Rules: the 'scroll-snap-type' property {#scroll-snap-type}
335335
in cases where it is longer than the screen.
336336

337337
<!-- mandatory and proximity -->
338-
If the content changes
339-
such that the scroll container would no longer be <a>snapped</a>
338+
If the content or layout of the document changes
340339
(e.g. content is added, moved, deleted, resized)
340+
such that the content of the <a>snapport</a> changes,
341341
the UA must re-evaluate the resulting <a>scroll position</a>,
342342
and re-snap if required.
343343
If the <a>scroll container</a> was <a>snapped</a> before the content change

0 commit comments

Comments
 (0)