Skip to content

Commit 1b960f8

Browse files
committed
[css-snappoints] Adding clarification re: visual viewport for snap viewport in overview and an explicit definition.
1 parent 85a7c08 commit 1b960f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-snappoints/Overview.src.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ <h2 id="overview">Overview</h2>
170170
as a particular alignment ('scroll-snap-align')
171171
of an element's <a>scroll snap area</a> ('scroll-snap-area', defaulting to its margin box)
172172
within the <a>scroll container</a>’s <a>snap viewport</a>
173-
(its viewport, as reduced by 'scroll-snap-padding').
173+
(its visual viewport, as reduced by 'scroll-snap-padding').
174174
This is conceptually equivalent to specifying the alignment of
175175
an <a>alignment subject</a> within an <a>alignment container</a>.
176176
A scroll position that satisfies the specified alignment
@@ -187,6 +187,10 @@ <h2 id="definitions">Definitions</h2>
187187
<dd>
188188
An element which provides a scrolling user interface as described in [[!CSS21]], particularly in the section on overflow.
189189

190+
<dt><dfn export>snap viewport</dfn>
191+
<dd>
192+
A scroll container's snap viewport is the rectangle obtained by reducing its visual viewport by its 'scroll-snap-padding'.
193+
190194
<dt><dfn export>snap position</dfn>
191195
<dd>
192196
For a scroll container, a particular value for its scroll offset is a snap position if when scrolled to that offset the visual viewport of the scroll container would align with a descendent element in the manner specified by the scroll snap properties.

0 commit comments

Comments
 (0)