Skip to content

Commit 73724c9

Browse files
lillessvgeesus
authored andcommitted
[css-conditional-5] snapped matches scrollsnapchanging #10784
Edit to clarify the resolution[1] in #10784 that scroll-state(snapped) matches the snap target for scrollsnapchanging, not scrollsnapchanged. That is, the snapped query changes evaluation during a scroll operation. [1] #10784 (comment)
1 parent 9d7be5c commit 73724c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

css-conditional-5/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Default Highlight: css
4343
spec:css-contain-2; type:dfn; text:layout containment box
4444
spec:css-contain-2; type:dfn; text:size containment box
4545
spec:css-pseudo-4; type:dfn; text:fictional tag sequence
46+
spec:css-scroll-snap-2; type:dfn; text:scrollsnapchanging
4647
spec:css-sizing-4; type:property; text:contain-intrinsic-size
4748
spec:css-sizing-4; type:property; text:aspect-ratio
4849
spec:intersection-observer; type:dfn; text:intersection root
@@ -1195,7 +1196,8 @@ Scroll snapping: the '@container/snapped' feature</h4>
11951196
</pre>
11961197

11971198
The '@container/snapped' [=container feature=] queries whether a [=snap target=]
1198-
is snapped to its [=snap container=] in the given axis.
1199+
is, or would be, snapped to its [=snap container=], in the given axis. That is,
1200+
it matches any [=snap target=] that the {{scrollsnapchanging}} event is fired for.
11991201

12001202
<dl dfn-type=value dfn-for="@container/snapped">
12011203
<dt><dfn>none</dfn>

0 commit comments

Comments
 (0)