Re: [csswg-drafts] [css-contain-3] Make `<container-query>` optional in `@container` (#9192)

The CSS Working Group just discussed ``[css-contain-3] Make `<container-query>` optional in `@container` ``, and agreed to the following:

* `RESOLVED: @container rule can have just a container name and match the closest container with that name`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> oriol: I can try to explain, though maybe leaverou would prefer to be in discussion<br>
&lt;dael> astearns: Why don't you introduce<br>
&lt;dael> oriol: In this issue when you have a container @rule there's container-query. Idea is make it optional. leaverou prop as a way to have more reasonable defaults for container-query units.<br>
&lt;dael> oriol: That wouldn't be possible, but still prop to make it optional. Functionality it would have is to apply styles with the assumption that a container has a given ancestors name, but not giving a condition. I think it's reasonable. not sure super useful, but reasonable and not hard to impl<br>
&lt;dael> oriol: Idea is allow to provide a name but with no condition in the element<br>
&lt;dael> TabAtkins: How do you conditionalize styles to only apply if ancestor has container?<br>
&lt;dael> fantasai: Using @concerner container anme {}<br>
&lt;dael> oriol: The idea is provide the name with no condition. The condition would be there is an ancestor with the name<br>
&lt;dael> TabAtkins: Got it. That seems reasonable<br>
&lt;dael> astearns: Is this possible by setting condition to something that always evaluates to true<br>
&lt;dael> TabAtkins: Yep. And that seems silly to require<br>
&lt;dael> astearns: Yep, if this exists already and we're making it easer it's good<br>
&lt;dael> astearns: Prop: @container rule can have just a container name and match the closest container with that name<br>
&lt;dael> astearns: Obj?<br>
&lt;dael> RESOLVED: @container rule can have just a container name and match the closest container with that name<br>
</details>


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


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

Received on Wednesday, 1 November 2023 23:57:21 UTC