Skip to content

Commit 68ce422

Browse files
committed
[css-scroll-snap-1] Require re-snapping to the focused element, if multiple coincide. Otherwise leave to UA. #4651
1 parent c135b56 commit 68ce422

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

css-scroll-snap-1/Overview.bs

+20
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,11 @@ Re-snapping After Layout Changes</h4>
410410
(e.g. its associated element was not deleted),
411411
the scroll container must be re-snapped to that same snap position
412412
after the content change.
413+
If multiple boxes were [=snapped=] before
414+
and their [=snap positions=] no longer coincide,
415+
then if one of them is focused or targetted,
416+
the [=scroll container=] must re-snap to that one
417+
and otherwise which one to re-snap to is UA-defined.
413418

414419
Scrolling required by a re-snap operation to a new or different box
415420
must behave and animate the same way as
@@ -1216,6 +1221,21 @@ Changes Since 31 January 2019 CR {#changes-20190131}
12161221
<li id="change-2019-clarify-writing-mode">
12171222
Specified which writing mode is used to resolve 'scroll-snap-align'.
12181223
(<a href="https://github.com/w3c/csswg-drafts/issues/3815">Issue 3815</a>)
1224+
<li id="change-2019-resnap-multiple">
1225+
Define requirements for re-snapping when multiple elements coincide.
1226+
(<a href="https://github.com/w3c/csswg-drafts/issues/4651">Issue 4651</a>)
1227+
<blockquote>
1228+
<p>If the <a>scroll container</a> was <a>snapped</a> before the content change
1229+
and that same <a>snap position</a> still exists
1230+
(e.g. its associated element was not deleted),
1231+
the scroll container must be re-snapped to that same snap position
1232+
after the content change.
1233+
<ins>If multiple boxes were [=snapped=] before
1234+
and their [=snap positions=] no longer coincide,
1235+
then if one of them is focused or targetted,
1236+
the [=scroll container=] must re-snap to that one
1237+
and otherwise which one to re-snap to is UA-defined.</ins></p>
1238+
</blockquote>
12191239
<li id="change-2019-resnap-animation">
12201240
Require re-snapping to a new element to animate the same way
12211241
as any other scroll-into-view operation.

0 commit comments

Comments
 (0)