[Webkit-unassigned] [Bug 145843] CSS Scroll Snap - support snapping to nested elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 11 06:52:22 PDT 2015


--- Comment #2 from Majid Valipour <majidvp at chromium.org> ---
Thanks for the link.

If I understand that correctly the 'elements' makes it so that the scrolling container has to be explicit when it is interested in capturing the snap points from descending children. This makes a sense.

However, it is still the case that the snap points are allowed to be defined by any descendants (and not just immediate children). That means the following should still snap:

#snap-container {
  scroll-snap-points-y: elements;
  scroll-snap-type: mandatory;

#snap-element {
  scroll-snap-coordinates: 50% 50%;

<div id='snap-container'>
      <p id='snap-element'></p> 

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150611/c2dc52eb/attachment-0001.html>

More information about the webkit-unassigned mailing list