- From: Robert O'Callahan <robert@ocallahan.org>
- Date: Fri, 16 Aug 2013 14:48:50 +1200
- To: François REMY <francois.remy.dev@outlook.com>
- Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, www-style <www-style@w3.org>
- Message-ID: <CAOp6jLZLX+5mG0yLOH_61U1gdh4FT5OystFmA1OgMS75eTN-ug@mail.gmail.com>
On Fri, Aug 16, 2013 at 2:34 PM, François REMY < francois.remy.dev@outlook.com> wrote: > > Have you got concrete use-cases where snapping to the margin or border > edges of an element would not work? > > Scrollable lists where you want to allow to scroll not exactly between > elements but 3% off to enable people to see a peek at the previous item as > a reminder they can scroll backward. > > Or if the content has an inherent padding you cannot remove for specific > reasons but do not want to take in consideration for the scrolling > algorithm. > > You may also want the content-start to be aligned with something > positioned externally (so instead of having the left edge of the element > coincide with the left edge of the scroll box, you may want to have it > starts at 30px (or whatever value marks the position of the element you > want to align with). > OK, adding length offsets to scroll-snap-edge might make sense. I'm not sure I believe in those use-cases enough to do it immediately. > Actually, what are the use-cases for [snap-lines outside the one defined > by elements]? > > Yes. Multicolumn elements are a great example. You may want to allow to > snap between any two columns. > That's a great example. However, I think it would make more sense to have a way to make multicolumn gaps be snap offsets. If we had a pseudo-element for styling individual columns, you could apply scroll-snap-edge to that element and everything would probably just work. Rob -- Jtehsauts tshaei dS,o n" Wohfy Mdaon yhoaus eanuttehrotraiitny eovni le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o Whhei csha iids teoa stiheer :p atroa lsyazye,d 'mYaonu,r "sGients uapr,e tfaokreg iyvoeunr, 'm aotr atnod sgaoy ,h o'mGee.t" uTph eann dt hwea lmka'n? gBoutt uIp waanndt wyeonut thoo mken.o w * *
Received on Friday, 16 August 2013 02:49:17 UTC