Re: [csswg-drafts] [css-anchor-position] Let more pseudo-elements have implicit anchor elements (#11792)

> I'm struggling to find places where this would be useful. Positing a pseudo-element relative to its parent is generally easy, right? Because it's inside its parent, the usual abs-pos stuff just works. Or am I missing something?

There's a lot of positioning options with anchor positioning that are not trivial or not possible with simple absolute position. E.g. try to implement position-area with fallback options based on available space.

As an example, I could create an arrow that points to the element from the side which is not clipped:
https://flackr.github.io/web-demos/css-anchor-position/indicators.html

Sidenote, I intended the arrows to rotate in the below fallback position but `@position-try` [doesn't allow transform properties](https://drafts.csswg.org/css-anchor-position-1/#fallback-rule) right now, perhaps it should?

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


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

Received on Tuesday, 10 February 2026 18:08:27 UTC