- From: Benoît Rouleau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 06 May 2024 19:12:40 +0000
- To: public-css-archive@w3.org
benface has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-sizing] Proposal: `default-width` CSS property == ### The problem It is impossible to write a CSS component that: - has a default width, whether it's a fixed width or a keyword other than `auto` (e.g. `200px` or `fit-content`) - will stretch properly when placed in a grid layout with `justify-items: stretch`, without contextual override (i.e. no `&:is(.grid > *) { width: auto; }`) ### The solution A new `default-width` property that defines the width of a `width: auto` element, while allowing it to stretch in a grid context. ### Here's [a Codepen that has a good visual explanation](https://codepen.io/benface/pen/QWPeojQ). Related to #7427, and could fix #3226 Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10282 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 6 May 2024 19:12:41 UTC