Re: [csswg-drafts] [css-position-3] Absolute positioning - Is the new inset & auto-size behaviour web-compatible? (#11195)

I think it's completely nonsensical that `place-self: stretch` does NOT stretch when `place-self: normal` DOES stretch!

```html
<!DOCTYPE html>
<style>
.container {
  position: relative;
  width: 100px;
  height: 100px;
  border: solid;
}
.abspos {
  position: absolute;
  inset: 0;
  margin: auto;
  border: solid magenta;
}
</style>
<div class="container">
  <div class="abspos" style="place-self: normal">foo bar</div>
</div>
<div class="container">
  <div class="abspos" style="place-self: stretch">foo bar</div>
</div>
```

![](https://github.com/user-attachments/assets/6ab4b9ca-f4a7-46a9-b5e4-83768cb39f09)

Sure, auto margins win in other layouts, but they win over both `normal` and `stretch` alignments.
I prefer abspos layout to be self-consistent rather than making only a few corner cases consistent with other layouts.


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


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

Received on Wednesday, 30 April 2025 19:47:19 UTC