- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Tue, 17 Dec 2024 22:53:59 +0000
- To: public-css-archive@w3.org
Similar question: what about `min-height: min-content`, should we treat it as `min-height: 0` or `min-height: initial`?
Browsers seem to do the latter.
```html
<!DOCTYPE html>
<style>
.wrapper { display: flex; flex-flow: column; width: 50px; height: 50px; border: solid; margin: 5px }
.item { flex-basis: 10px; align-self: center }
canvas { background: cyan; height: 100% }
</style>
<div class="wrapper">
<div class="item" style="min-height: 0">
<canvas width="25" height="25"></canvas>
</div>
</div>
<div class="wrapper">
<div class="item" style="min-height: auto">
<canvas width="25" height="25"></canvas>
</div>
</div>
<div class="wrapper">
<div class="item" style="min-height: min-content">
<canvas width="25" height="25"></canvas>
</div>
</div>
<div class="wrapper">
<div class="item" style="min-height: max-content">
<canvas width="25" height="25"></canvas>
</div>
</div>
```
| Firefox | Blink | WebKit |
| - | - | - |
|  |  |  |
--
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11387#issuecomment-2549821781 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 17 December 2024 22:54:00 UTC