Re: [csswg-drafts] [css-scroll-snap-1] Snapping on both axes allows re-snap after layout to choose inconsistent snap targets (#4651)

I suspect in the multiple elements involved case, the spec should leave it up to the UA which one to choose. I doubt we know for sure what heuristic would be best in these cases, excepting cases where the user has focused an element in which case the focused element should be the one that remains snapped.

So my proposal would be something like

> If multiple elements were snapped before the change, which element is re-snapped after the change is up to the UA. However, if any of them have focus, that one must be chosen.

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4651#issuecomment-575312124 using your GitHub account

Received on Thursday, 16 January 2020 19:40:48 UTC