Re: [csswg-drafts] [css-anchor-position-1] allow anchor() within shape() (#13716)

> Yeah I assume an anchor() would be usable in place of any X or Y component, choosing the appropriate axis. If you want to use X and Y both from a single anchor you'd have to repeat the `anchor()` function for both coords.
> 
> > caveat here being I have no idea how one would extract an X or Y component from what I guess I would call a Vector of an anchor position, should that even be necessary.
> 
> Note that `anchor()` doesn't resolve to a vector or 2d position, it resolves to a horizontal _or_ vertical offset from the edge of the positioning container to the desired edge of the anchor; whatever value would be needed to align the two desired edges. So it's straightforward to use here.

Makes sense! Thanks for clarifying that - was just a mental model hangup on my part :)

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


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

Received on Friday, 3 April 2026 13:50:55 UTC