Re: [csswg-drafts] `scroll-snap-align` assignment + `scroll-behavior: smooth` interpolation (#7372)

another use case:
- keyboard focus, where the focused item is the only snap child. as a keyboard traverses focusable elements and those elements are given snap alignments, they should smoothly interpolate to the snap position instead of instantly (if smooth behavior is specified on the scrollport). 

```css
html:has(.CertainItem:focus-visible) {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.CertainItem:focus-visible {
  scroll-snap-align: start;
}
```

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


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

Received on Tuesday, 27 December 2022 21:52:04 UTC