[css-snappoints] [css-scroll-snap] Summary of latest updates 1/13

Hi all,

On the call this morning I promised to send an outline of edits I've made in the latest editor's draft [1] during the spec merge, specifically as compared to Tab/Elika's proposal [2].

(1) Converted remaining references to "specified box" for scroll-snap-area to "border-box".
(2) Changed "snap viewport" to "snap alignment container" -- the term "viewport" isn't really appropriate since it is describing a rect for alignment, not a port through which something is viewed.  It also avoids unintentional conflation with the other uses of the word "viewport" in the spec.  I'm sure there is probably a better term though, I'm open to alternatives.
(3) Replaced usage of "viewport" with "visual viewport".  The two-viewport model still needs to be spec'd, but for those not familiar with that model, this would be the "actually what I'm seeing" viewport as opposed to the "used for layout purposes" viewport.
(4) Specified that scroll-snap-padding does accept percentages (percentages are relative to the scroll container's visual viewport).
(5) Specified that scroll-snap-area does accept percentages (percentages are relative to the border-box).
(6) More explicit description of the re-snap requirement -- mostly just clarification, but does add that mandatory snap points "must"/"should" re-snap to the previously snapped position for "mandatory"/"proximity" respectively (was "should" for both in Tab/Elika's proposal).

Also I should go ahead and call out these items I am planning to omit during the merge:

(1) Example 2, since we generally agreed to push scroll-groups from level 1 [3].
(2) 2d snapping in general, including the "point" value from scroll-snap-type (or whatever we settle on for axis specification), example 3, example 6, example 7 part 3, and other references to 2d snapping.  This is with the intent of pushing 2d snapping from level 1 per feedback from Apple [4].  This didn't get a formal resolution so may need more discussion, but I have no objections with moving it to level 2.  Regardless, I do intend to add some other "center in the remaining space" example if example 6 is omitted.
(3) Example 1 and the rest of example 7, since they overlap the existing examples 1 and 2 (snap to top of a page with a buffer area, snap to center of a photo in a slideshow).

I've also added the warning text to the top of the spec as resolved upon this morning [5].

Please let me know if you have any concerns with those edits or other feedback!


[1] https://drafts.csswg.org/css-snappoints/
[2] https://drafts.csswg.org/css-scroll-snap/
[3] https://lists.w3.org/Archives/Public/www-style/2015Sep/0094.html
[4] https://lists.w3.org/Archives/Public/www-style/2015Nov/0306.html
[5] https://logs.csswg.org/irc.w3.org/css/2016-01-13/#e635410

Received on Thursday, 14 January 2016 01:17:37 UTC