Re: [csswg-drafts] [css-anchor-1] `anchor()` inside an `inset` shorthand (#8582)

I agree that having a method to get a four value inset from the anchor would be great.

If we some day could perform operations on 1-to-4-value shorthands, this could become really flexible. 
For example, we could add to the inset shorthand using a function like this:

```css
inset: sum-1-to-4(anchor(--my-anchor, inset), 10px);
```

And we could also find the minimal rectangle that contains a set of anchors:
```css
inset: min-rectangle-1-to-4(anchor(--anchor-1, inset), anchor(--anchor-2, inset));
```


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


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

Received on Wednesday, 15 March 2023 20:16:07 UTC