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
It makes no sense to establish a query container for container size queries if size containment has no effect on the element. Obvious circularity issues.
The text was updated successfully, but these errors were encountered:
The intent was that an element with container-type:size/inline-size is always a query container, regardless of whether or not containment can apply on the element. However, any queries against a query container that "does not support" queries along the relevant axis results in "unknown". I prefer keeping it this way, since it makes it possible to answer the question "is this a query container" immediately after the style recalc of an element. If we involve layout box information, we can't answer that question until after layout-tree-building, which is annoying.
See https://drafts.csswg.org/css-contain-3/#container-type
While all elements accept style containment, layout containment requires all these conditions:
Size containment and inline-size containment, in addition to the requirements above, also need:
It makes no sense to establish a query container for container size queries if size containment has no effect on the element. Obvious circularity issues.
The text was updated successfully, but these errors were encountered: