Re: [csswg-drafts] [css-anchor-position] Allow multiple names in position-anchor, for fallback (#12576)

> You can solve it by applying the anchor-name: --x onto .selected only when its parent .action-bar does not have a :hover, :focus.

Yeah, that's the "you have to do some awkward :has() rules" thing I mentioned.

> One question though: wouldn’t this be covered by [first-valid()](https://drafts.csswg.org/css-values-5/#first-valid)?

No, they're all grammatically valid. It's only at layout time that we discover we need to do anchor fallback.

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


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

Received on Monday, 11 August 2025 20:49:08 UTC