Re: [csswg-drafts] [css-anchor-1] Ability to escape containment of other positioned elements (#8588)

I did not experiment with `fixed` position yet — did a quick test, and it is _almost_ what I would want: https://codepen.io/kizu/pen/PodeOMx?editors=1100

The _initial_ state seems to be what I would like to have — the element escapes its parent with the `position: relative`, but the issue is when we start scrolling:

https://user-images.githubusercontent.com/177485/225388329-4afe64c8-1161-42e1-bd16-9af71e5b50ab.mov

Because it has “fixed” position, it just stays in the initial position as if the scroll did not happen.

Again, I _did not_ yet play with the `anchor-scroll`, so not sure if it could be used to solve this? If not, then `fixed` does not solve my issue, as what I would want is for my element to be in the global scope, but behave like `absolute` and not `fixed`.

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


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

Received on Wednesday, 15 March 2023 17:17:03 UTC