Re: [csswg-drafts] [css-scroll-snap-1] Improve or clarify nested snap behaviors (#9187)

The main resolution I'm looking for here is regarding overlapping / nested areas.

I'd like to resolve that [overflowing areas](https://drafts.csswg.org/css-scroll-snap-1/#snap-overflow) where a smaller nested snap area intersects the snap port should not allow snapping to the outer / larger area. In effect, the larger area is split into regions before and after the inner area.

For inner areas smaller than the scrollport, we expand the before valid area by `inner snap rect bottom (when snapped) - scrollport bottom` and the after area by `scrollport top - inner snap top (when snapped)` (and similarly for horizontal snap). This reduces the required jump when entering smaller inner mandatory areas.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 7 November 2023 18:55:33 UTC