W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

[csswg-drafts] [css-sizing-4] Consider allowing specifying min-content and max-content separately for contain-intrinsic-size (#5573)

From: Christian Biesinger via GitHub <sysbot+gh@w3.org>
Date: Thu, 01 Oct 2020 21:15:40 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-713189711-1601586937-sysbot+gh@w3.org>
cbiesinger has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-sizing-4] Consider allowing specifying min-content and max-content separately for contain-intrinsic-size ==
https://drafts.csswg.org/css-sizing-4/#intrinsic-size-override

In https://github.com/w3c/csswg-drafts/issues/5549, there was a desired use case that an element with contain:size and contain-intrinsic-size can shrink as its container shrinks but has a "default" size.

That issue suggested a solution by making min-content 0 if the width is a percentage width (matching replaced elements), but another option would be to specify min-content and max-content separately in contain-intrinsic-size. This would also be more like "real" content, which typically has a different min- and max-content size.

Strawman syntax: `contain-intrinsic-size: 10px 20px 100px`, meaning min-content 10px, max-content 20px, intrinsic height 100px.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5573 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 1 October 2020 21:15:45 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:20 UTC