Re: [csswg-drafts] [css-anchor-position]: Question: Why is anchor-size() only valid in a sizing property? (#9827)

Linking the https://github.com/w3c/csswg-drafts/issues/8586 that proposed a similar thing, alongside a wish to use both `anchor()` and `anchor-size()` for things like `background-position`, `transform` etc.

With `anchor-size()` being an offset, it is understandable that it is weird to have it be present in other properties. But thinking about the use cases I had for this, almost always what we want is a _difference_ between some offsets of any two elements.

Are there any implementation issues in allowing it for properties like `background-position`/`-size`, `transform`, `clip-path` and others where it can make sense, or it just feels odd to have a not useful offset there, usually not making sense by itself outside of calculating with other offsets?

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


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

Received on Monday, 10 June 2024 23:20:45 UTC