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

Update! Quickly also tested the `anchor-scroll`, and it seems very promising: https://codepen.io/kizu/pen/eYLryLE?editors=1100

I'm not entirely sure how/why it works the way it works in combination with `position: fixed`, and it works regardless of which anchor I provide (either `--a` or `--b` seem to work), but for this exact case this actually works! Very very cool!

Now, I'm not super sure what could be the difference between what I'm proposing and this workaround — I would need to do a bit more testing.

From the top of my head — potentially, the rules for the anchor acceptance could be different for a fixed element and an element inside a certain scope maybe?

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8588#issuecomment-1470467649 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:35:41 UTC