- From: Tim Seckinger via GitHub <sysbot+gh@w3.org>
- Date: Wed, 16 Mar 2022 19:38:47 +0000
- To: public-css-archive@w3.org
> The use case would require more of a "[scroll linked](https://github.com/w3c/css-houdini-drafts/issues/45#issuecomment-142773956)" relationship between the outer and inner scrollers instead of an inverse "scroll chaining" priority. In other words, **while** you scroll the inner you'd also the scroll the outer (and possibly [re-target scrolling](https://github.com/w3c/css-houdini-drafts/blob/main/scroll-customization-api/UseCases.md#re-targeting-scrolling) captured by the outer onto the inner scroller). Not sure I know enough about CSS internals and spec to follow correctly, but retargeting, if that means moving from scrolling the outer to the inner during a continuous scrolling motion without the user having to stop scrolling in between, I would agree that this is also a desirable behavior but seems to be a separate thing from the scroll priority. Re scrolling the inner and the outer at the same time I don't see how this would be necessary. When you scroll the outer box of height `100vh + $topbarHeight px` from the "topbar hidden" position where it goes out of the viewport by `$topbarHeight px` at the top to the "topbar visible" position where it goes out of the viewport by `$topbarHeight px` at the bottom (or scroll it back the other way around), then the inner box inside it moves as a whole, which automatically visually moves the content inside it without having to change the scroll position of the content in the inner box. I believe you may have misunderstood the outer-inner element structure in the original proposal; I maintain that the proposal would solve the topbar use case. -- GitHub Notification of comment by jeysal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5670#issuecomment-1069543463 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 March 2022 19:38:49 UTC