- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 24 Sep 2024 18:36:27 +0000
- To: public-css-archive@w3.org
Yeah, it's kinda weird that, given enough available space, `fit-content` doesn't behave like `max-content`:
```html
<!DOCTYPE html>
<div style="width: max-content">
<table style="table-layout: fixed; width: max-content" border>
<tr><td style="width: 0">lorem ipsum</td></tr>
</table>
<table style="table-layout: fixed; width: fit-content" border>
<tr><td style="width: 0">lorem ipsum</td></tr>
</table>
</div>
```
Only checking for `auto` would make this more future-proof.
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10937#issuecomment-2372024573 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 24 September 2024 18:36:28 UTC