Re: [csswg-drafts] [css-grid][css-contain] Clarify that `contain:size` affects track sizing (#4931)

> the grid must still be sized as if it were empty, then laid out in that size

Well, a box either intrinsically sized, or has a definite size from the style properties, or stretch fit into a definite available size. [There are no other cases](https://drafts.csswg.org/css-sizing-3/#auto-box-sizes), hence the part I removed is unnecessary and just adds confusion. Obviously, when the size is definite then whether or not it should be consider to have no contents when calculating that size is irrelevant. So the only case that remains is intrinsic sizing.

Anyway, I believe we agree on the behavior, just not which wording to best describe it.

> But since the goal of size containment is that whatever happens inside the element has no effect on the size of the element, this cannot be allowed.

OK, so you're advocating for option C (https://github.com/w3c/csswg-drafts/issues/4931#issuecomment-615144446) then, if I understand you correctly?


-- 
GitHub Notification of comment by MatsPalmgren
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4931#issuecomment-621258036 using your GitHub account

Received on Wednesday, 29 April 2020 14:44:56 UTC