Re: [csswg-drafts] [css-contain-3] Provide a syntax to query a specific container-type (#6393)

The CSS Working Group just discussed `CSS Conditional L3 : Syntax for container types`, and agreed to the following:

* `RESOLVED: Boxes default to style containment, syntax of 'container' and @container preamble is name / type`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: CSS Conditional L3 : Syntax for container types<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/6393<br>
&lt;fantasai> miriam: Really wanted a way to query which type of conainer<br>
&lt;fantasai> miriam: e.g. find nearest inline-size container<br>
&lt;fantasai> miriam: Already the query has two parts to it<br>
&lt;fantasai> miriam: can query a specific named container<br>
&lt;fantasai> miriam: and then main query list is what queries against that container<br>
&lt;fantasai> miriam: so adding to preamble ability to filter by container type<br>
&lt;fantasai> miriam: in the discussion fantasai suggested that we could matched the syntax of the container shorthand property<br>
&lt;fantasai> miriam: currently that syntax requires a type, and then slash, and then any number of names<br>
&lt;fantasai> miriam: that could work, but in our initial formulation the container type is required to establish a container<br>
&lt;fantasai> miriam: which is why it's first<br>
&lt;fantasai> miriam: but for queries, seems that putting name first makes sense<br>
&lt;fantasai> miriam: since most ppl will be querying name, not type<br>
&lt;fantasai> miriam: Also discussion that all boxes can be style containers<br>
&lt;fantasai> miriam: which would make type container<br>
&lt;fantasai> miriam: make a style conainer<br>
&lt;fantasai> miriam: in that case, we could start with names in container property<br>
&lt;fantasai> miriam: and if you wanted to make a type of container without a name, would have to start the value with a slash<br>
&lt;fantasai> Rossen_: Any opinions?<br>
&lt;miriam> this comment lays it out: https://github.com/w3c/csswg-drafts/issues/6393#issuecomment-988216116<br>
&lt;fantasai> miriam: Comment summarizes the proposal<br>
&lt;fantasai> miriam: 3 resolutions<br>
&lt;fantasai> miriam: 1. Make style as the default container type, all boxes can take<br>
&lt;fantasai> miriam: 2. Changing 'container' property syntax to name / type<br>
&lt;fantasai> miriam: 3. Changing @container preamble to match<br>
&lt;fantasai> florian: I think we shoud take all 3, only make sense if we take them all<br>
&lt;fantasai> Rossen_: Any objections to resolving on all 3?<br>
&lt;fantasai> RESOLVED: Boxes default to style containment, syntax of 'container' and @container preamble is name / type<br>
&lt;fantasai> Rossen_: Do we need to republish soon?<br>
&lt;fantasai> miriam: need to make some changes first<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6393#issuecomment-1011283604 using your GitHub account


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

Received on Wednesday, 12 January 2022 17:27:04 UTC