Re: [csswg-drafts] [css-anchor] Interaction between `anchor-scroll` and `position: sticky` is not well defined (#8448)

Moving a (reworded) part of my comment regarding sticky positioning from https://github.com/w3c/csswg-drafts/issues/8584 here:

Right now, the positions for the anchors do not take into account `position: sticky` when something is in a stuck position.

In practice, there were cases in my experiments where I wanted to use it: the adjusted position of an element with the `position: sticky` for things that should be shown for the stuck element.

Use cases:
- A stuck toolbar/header with items having tooltips/dropdowns attached to buttons inside of it
- Sticky sidebars that could also have things inside that cause anchored popovers to appear.


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


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

Received on Thursday, 1 June 2023 20:43:09 UTC