- From: Alison Maher via GitHub <noreply@w3.org>
- Date: Thu, 16 Oct 2025 22:06:07 +0000
- To: public-css-archive@w3.org
alisonmaher has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-grid-2] Aspect ratio and the row axis == In the following test case: ``` <!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat"> <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="Checks that the min-height is reflected through the aspect-ratio for determining auto repeat tracks."> <p>Test passes if there is a filled green square.</p> <div style="display: inline-grid; background: green; aspect-ratio: 1/1; min-height: 60px; grid-template-rows: repeat(auto-fill, 50px);"></div> ``` All browsers appear to render a 60x60 green square, as opposed to 100x100. In order to hit the `min-height`, though, you'd expect to produce 2 50px rows. <img width="240" height="103" alt="Image" src="https://github.com/user-attachments/assets/fd87bd24-09c8-4500-accb-c223aa09257b" /> In the column direction, however, this works as expected, and 2 50px columns are produced, resulting in a 100x100 square: ``` <!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-grid-1/#auto-repeat"> <link rel="match" href="../../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="Checks that the min-height is reflected through the aspect-ratio for determining auto repeat tracks."> <p>Test passes if there is a filled green square.</p> <div style="display: inline-grid; background: green; aspect-ratio: 1/1; min-height: 60px; grid-template-columns: repeat(auto-fill, 50px);"></div> ``` <img width="241" height="128" alt="Image" src="https://github.com/user-attachments/assets/ebc6ef2f-da26-415b-a7fc-7f25567e0a5b" /> Is this expected to only work in the column direction? (Same question applies for masonry) Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12964 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 October 2025 22:06:11 UTC