You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If overflow is set to things other than visible then that should also affect min-content.
If a developer sets overflow: hidden; on a div placed in a css-grid column set to 1fr, currently that div will never allow the overflow to take affect.
Any time a developer sets an overflow property, it is a clear sign that the developer intends for the content to be able to overflow it's container.
The text was updated successfully, but these errors were encountered:
Thanks @Dan503. :) I think I disagree with you specifically on this point: if the author specifically asks the element with overflow to size to its min-content size, then that's what should happen. Otherwise we can't intelligently combine it with other constraints, e.g. width: min-content; max-width: 100% shouldn't be equivalent to width: 0; max-width: 100% if overflow is set.
However, see #1865 for making overflow affect the min-content contribution, which I think will solve the problem you call out in 2270. I really want to fix this, but I have to first prove Web-compatibility, which is hard. :( If you think it'd be worth doing for Grid and Flex only, even if we can't make it happen for Block, please comment there to that effect...
See #2270 (comment)
https://www.w3.org/TR/css-sizing-3/#valdef-width-min-content
If
overflow
is set to things other thanvisible
then that should also affectmin-content
.If a developer sets
overflow: hidden;
on a div placed in a css-grid column set to 1fr, currently that div will never allow the overflow to take affect.Any time a developer sets an
overflow
property, it is a clear sign that the developer intends for the content to be able to overflow it's container.The text was updated successfully, but these errors were encountered: