- From: Oriol Brufau via GitHub <noreply@w3.org>
- Date: Fri, 13 Jun 2025 12:14:32 +0000
- To: public-css-archive@w3.org
Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-sizing] Intrinsic min/max block sizes with aspect ratio? == ```html <!DOCTYPE html> <style> canvas, div { display: block; border: solid cyan; height: 0; width: max-content; min-width: 0; aspect-ratio: 1; } div::before { content: ""; display: block; width: 50px; height: 50px } </style> <canvas width="50" height="50" style="height: 0px; min-height: max-content"></canvas> <canvas width="50" height="50" style="height: 100px; max-height: max-content"></canvas> <div style="height: 0px; min-height: max-content"></div> <div style="height: 100px; max-height: max-content"></div> <script> document.write([...document.querySelectorAll("canvas, div")].map(el => el.clientWidth + " x " + el.clientHeight).join("<br>")) </script> ``` | Blink | WebKit | | - | - | |  |  | Is the behavior supposed to be different for a replaced element than for a non-replaced one? What should the behavior be if I use `aspect-ratio: 2` instead? | Blink | WebKit | | - | - | |  |  | Back to `aspect-ratio: 1`, what should happen if I use `min-width: auto`? | Blink | WebKit | | - | - | |  |  | CC @bfgeek Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12333 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 13 June 2025 12:14:33 UTC