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

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