[csswg-drafts] [css-position][css-anchor-position][css-align] anchor-center and overflowing the inset-modified containing block (#12020)

fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-position][css-anchor-position][css-align] anchor-center and overflowing the inset-modified containing block ==
Consider an element inside a 100x100 containing block:

```
.abspos {
  position: absolute;
  position-anchor: --foo;
  inset: 20px;
  place-self: anchor-center;
  size: 8px;
}
```

Suppose the anchor is positioned at 20px from the left. Centering it against the anchor would place its left edge at 16px, but the inset is 20px. What should happen here?

This question came up in https://github.com/web-platform-tests/interop/issues/945

My interpretation is that the default overflow rules should only allow the item to overflow its insets if it doesn't fit within its inset-modified containing block. Ian's was that anchor-center simply ignores the insets always. What do we think is the right behavior?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12020 using your GitHub account


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

Received on Friday, 28 March 2025 16:17:55 UTC