Skip to content

[css-scroll-snap] Consider introducing a term for the boxes creating scroll snap areas #1760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alrdytaken opened this issue Aug 27, 2017 · 3 comments

Comments

@alrdytaken
Copy link

The specification is about a scroll containerand items/boxes/elements which are aligned using there scroll snap areaand the scroll container's snapport.

At the moment the items/boxes/elements are referenced to as so:
[…] properties on the elements […], […] snapping this box to […], etc.

I'd find it easier to read and explain if the items/boxes/elements had an own term. Like i.e. flex box has flex-items

I'd propose: scroll snap items

@tabatkins
Copy link
Member

tabatkins commented Dec 4, 2017

The thing being snapped is the "scroll snap area", which already has a term. There doesn't seem to be a particular reason to have a term for the boxes themselves, as we don't refer to them outside the definition of "scroll snap area".

Does this work for you?

@alrdytaken
Copy link
Author

Well, I still think it's not as easy to read …

"[…] positions that produce particular alignments of content within a scroll container […]"

"[…] specified as a particular alignment of an element’s scroll snap area […]"

"[…] area that is used for snapping this box to the snapport […]"

as it would be when replacing content, element and box with scroll snap item including a reference to the definition, "any descendant of a scroll container" or whatever.

@fantasai
Copy link
Collaborator

fantasai commented Jan 2, 2019

The first two are in the introduction to the spec, and the purpose of that section is to introduce the general concept without excess jargon. The last one is the actual definition of 'scroll snap area', which, as @tabatkins explained, is the term we are using for the thing that's actually getting aligned (and is used consistently throughout the rest of the spec). We can't very well define a term in terms of itself.

Closing this one out, because I don't think that creating and using jargon in the introductory paragraph is helpful, and because 'scroll snap areas' is correctly a) defined not in terms of itself but in terms of other things, as it should be and b) used consistently throughout the spec to refer to the thing being snapped/aligned.

@fantasai fantasai closed this as completed Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants