Re: [csswg-drafts] [css-scroll-snap] Visibility requirement makes x and y axis snapping dependent

> (Your exact example shouldn't trigger anything, as they're far 
enough away from the scroll direction that they can't both be 
alignable and within the target viewport. But you could put them much 
closer together and get it to trigger.)

Probably my diagram is not clear but I was picturing a case where user
 scroll gesture ends at this situation and we are looking for snap 
alignment in both axis. If I read the spec correctly in this situation
 both elements are visible within the snapport and thus valid 
candidate in their respective axis. 

I included the direction arrow to emphasis that user scrolling both 
horizontally and vertically which is why the logic is looking for snap
 alignments in **both** axis. Presumably if the user was only 
scrolling in one direction the UA may decide to only consider snapping
 in that axis.

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

Received on Wednesday, 25 January 2017 17:00:58 UTC