- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 14 Apr 2025 16:46:44 +0000
- To: public-css-archive@w3.org
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 |
| - | - |
|  |  |
--
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