Skip to content

Commit 16cbf52

Browse files
committed
[css-snappoints] Adding text to clarify that the same snap position should be satisfied post-content modification, rather than just any snap position. Also 'specified value' -> 'as specified'
1 parent e6b1985 commit 16cbf52

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

css-snappoints/Overview.bs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
208208
Inherited: no
209209
Percentages: n/a
210210
Media: interactive
211-
Computed value: specified value
211+
Computed value: as specified
212212
Animatable: no
213213
</pre>
214214

@@ -219,11 +219,15 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
219219

220220
<dt><dfn>mandatory</dfn>
221221
<dd>
222-
The visual viewport of this <a>scroll container</a> is guaranteed to rest on a snap position when there are no active scrolling operations. That is, it must come to rest on a snap position at the termination of a scroll, if a valid, reachable snap position exists. If no valid, reachable snap position exists then no snapping occurs. If the content changes such that the visual viewport would no longer rest on a snap position (e.g. content is added, moved, deleted, resized), the scroll offset must be modified to maintain this guarantee.
222+
The visual viewport of this <a>scroll container</a> is guaranteed to rest on a snap position when there are no active scrolling operations. That is, it must come to rest on a snap position at the termination of a scroll, if a valid, reachable snap position exists. If no valid, reachable snap position exists then no snapping occurs.
223+
224+
If the content changes such that the visual viewport would no longer rest on a snap position (e.g. content is added, moved, deleted, resized), the scroll offset must be modified to maintain alignment of the visual viewport with a snap position. If the visual viewport was already aligned with a snap position prior to the content change and that snap position still exists (e.g. its associated element was not deleted), that same snap position must be satisfied after the content change.
223225

224226
<dt><dfn>proximity</dfn>
225227
<dd>
226-
The visual viewport of this <a>scroll container</a> may come to rest on a snap position at the termination of a scroll at the discretion of the UA given the parameters of the scroll. If the content changes such that the visual viewport would no longer rest on a snap position (e.g. content is added, moved, deleted, resized), the scroll offset may be modified to maintain this guarantee.
228+
The visual viewport of this <a>scroll container</a> may come to rest on a snap position at the termination of a scroll at the discretion of the UA given the parameters of the scroll.
229+
230+
If the content changes such that the visual viewport would no longer rest on a snap position (e.g. content is added, moved, deleted, resized), the scroll offset may be modified to maintain alignment of the visual viewport with a snap position. If the visual viewport was already aligned with a snap position prior to the content change and that snap position still exists (e.g. its associated element was not deleted) and if the user agent elects to modify the scroll offset to maintain snap position alignment, that same snap position should be satisfied after the content change.
227231
</dl>
228232

229233
<h2 id="scroll-snap-padding">Scroll Snap Padding: the 'scroll-snap-padding' property</h2>
@@ -238,7 +242,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
238242
Inherited: no
239243
Percentages: relative to the scroll container's visual viewport
240244
Media: interactive
241-
Computed value: specified value, with lengths made absolute
245+
Computed value: as specified, with lengths made absolute
242246
Animatable: yes
243247
</pre>
244248

@@ -262,7 +266,7 @@ Ignored Terms: scroll-snap-positions-*, containing block chain
262266
Inherited: no
263267
Percentages: relative to the specified element box
264268
Media: interactive
265-
Computed value: specified value, with lengths made absolute
269+
Computed value: as specified, with lengths made absolute
266270
Animatable: yes
267271
</pre>
268272

0 commit comments

Comments
 (0)