Re: [csswg-drafts] [css-sizing] How to handle min-content being bigger than max-context? (#12076)

Actually, rather than flooring the max-content by the min-content at the very end, it seems that WebKit floors the intrinsic contributions of each content to be at least zero. That also avoids the problem, but seems suboptimal:

```html
<!DOCTYPE html>
<style>
span {
  display: inline-block;
  vertical-align: top;
  height: 50px;
  background: rgba(0, 0, 0, 0.25);
}
</style>
<div style="width: max-content; border: solid">
  <span style="width: 100px"></span>
  <span style="margin-right: -50px"></span>
  <span style="width: 100px"></span>
</div>
```

| WebKit | Others |
| - | - |
| ![](https://github.com/user-attachments/assets/09ccfa49-4332-46a9-aa7d-6658081c918e) | ![](https://github.com/user-attachments/assets/05917042-6770-4fc8-a270-72f51c184b2e) |


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


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

Received on Monday, 14 April 2025 16:46:45 UTC