[css-grid][css-sizing] Aspect Ratio · Issue #333 · w3c/csswg-drafts (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
Grid & Flexbox make the aspect ratio problem more urgent, since they're so much better at flexible sizing than previous layout models...
Jen Simmons wrote:
I wish big time there were a way to transfer a calculated size from one dimension to the other. AKA… I define columns to be 1fr each. And I want the cells to be squares (or always have a 16x9 ratio, or whatever — but to maintain a fixed aspect ratio). How can I define the rows to be 1fr-from-the-column-calculation?? I want that.