Re: [csswg-drafts] [css-contain] Container queries wrongly assume that all elements can be contained (#7667)

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](https://drafts.csswg.org/css-contain-3/#size-container:~:text=the%20query%20container%20does%20not%20support)" 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.

But "does not support" is a little vague, and we could minimally also link to https://drafts.csswg.org/css-contain-2/#size-containment-box explicitly.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 September 2022 09:06:42 UTC