-
Notifications
You must be signed in to change notification settings - Fork 1
Does the updated contain proposal prevent one axis from affecting the other? #1
Comments
Sorry for letting this sit for so long. The issue in w3c/csswg-drafts#4741 is somewhat related to what I'm trying to propose here, but not that related. In particular, the current definition of containment uses a convenient shorthand: define The aspect of containment that I think is needed for container queries is to have containment in a single axis. Doing this is harder from a specification perspective, since the specification can no longer use the shortcut of saying to assume that the element has no contents -- it instead requires that we make that sort of assumption in some places but not others. So the approach I'm proposing here is that we're going to have to redefine containment in each axis by having the spec define each effect that containment has. However, the combination of the effects that you'd get from Or, to put it another way, this approach means that the specification needs to take the approach that I believe implementations already take (at least Gecko's implementation does), which is adding a test in various places in the layout code to have some specific change in behavior when containment is present. |
Oh, and yes, what I'm proposing to do here is exactly fixing w3c/csswg-drafts#1031. |
(And I should work through the examples in that issue in a bit more detail at some point.) |
I'm planning to archive this repository shortly. If this issue is still relevant, it should be raised in the CSS Working Group's repository. |
Thank you so much for putting your mind to this issue.
After reviewing Dependence on containment, I saw that in w3c/csswg-drafts#4741 you wished clarify that the computation of the intrinsic sizes of the box must also be done as though the box has no contents. (emphasis added)
Do I understand correctly that this successfully resolves a scenario where one axis size may depend on another, as described in w3c/csswg-drafts#1031 (comment) ? (example with the suggested addition of
box-sizing: border-box
).The text was updated successfully, but these errors were encountered: