Re: [csswg-drafts] [cssom-view-1] Provide option for scrollIntoView that only scrolls a single scroll container. (#9452)

Developers could also use `scrollParent` from #1522 if they wanted to for example scroll every scroller from the target to some particular ancestor. E.g.

```js
function scrollElementIntoView(ancestor, target) {
  while (target && target != ancestor) {
    target.scrollIntoView({scroll: "nearest"});
    target = target.scrollParent;
  }
}
```

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


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

Received on Tuesday, 10 October 2023 17:05:05 UTC