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 an element has an explicit intrinsic inner size in an axis, then after laying out the element as normal for size containment, the size of the contents in that axis are instead treated as being the explicit intrinsic inner size instead of what was calculated in layout, and layout is performed again if necessary.
I don't really get the difference between sizing as there was no content, vs sizing as if the contents had a size of 0.
I guess contain-intrinsic-size: none may produce contents with a size greater than 0 due to gap, grid-template, ... but contain-intrinsic-size: 0 disregards all of that and 0 is the final content size? See #7520
In #7520 (comment) Tab confirmed that the difference is that none may result in an intrinsic size greater than 0 due to other properties, while 0 disregards that. I think the spec should have a note or example.
From https://drafts.csswg.org/css-contain-2/#containment-size
From https://drafts.csswg.org/css-sizing-4/#explicit-intrinsic-inner-size
I don't really get the difference between sizing as there was no content, vs sizing as if the contents had a size of 0.
This case shows a difference in Blink:
The 1st image has its natural width, the 2nd one is 0px wide. Not sure if this is correct.
The text was updated successfully, but these errors were encountered: