W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2020

Re: [csswg-drafts] [cssom-view-1] Provide onAnimationEnd callback in scrollIntoView options (#3744)

From: webdevelopers-eu via GitHub <sysbot+gh@w3.org>
Date: Fri, 18 Dec 2020 17:28:55 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-748219037-1608312534-sysbot+gh@w3.org>
There is another use case: when scrolling to particular element it is common behavior that one must take in an account fixed-position headers. Unfortunately the very widespread solution is to have resizable fixed headers. E.g. tall header in the initial position and minimal header after a page was scrolled a bit.

That poses the problem with adjusting the target scroll position as the header changes size. 

While one can easily use ResizeObserver to watch for header changes and adjust the target scroll offset accordingly there is no way to know when to stop and disconnect ResizeObserver after scrolling finished.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 18 December 2020 17:28:56 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:24 UTC