Re: [csswg-drafts] [css-anchor-1] Using anchor offsets/dimensions for properties other than inset/sizes (#8586)

I did recently play a bit with the transforms, as well as with [this hack](https://dev.to/janeori/css-type-casting-to-numeric-tanatan2-scalars-582j) for working around the absence of the ability to strip units from the calculations.

It would be really nice to add at least the `anchor-size` to the `transform` properties (all of them), as this would allow doing things like positioning an element rotated between some elements, and many other interesting things. And, adding `anchor-size` to the `transform` should be safe enough, as using any anchor's value, there should not have any impact on anything else.

This would also unlock an ability to use more dimensions in the transform aside from its element via `%` — this can be very powerful. I recently wanted to use both the element's dimensions, and its parent's for this, and ended up using container query length units, but it would be awesome to allow this for non-container cases as well (siblings, etc).

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


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

Received on Saturday, 18 November 2023 13:58:57 UTC