Re: [csswg-drafts] [css-contain-3] Can we allow custom properties in dimensional container queries? (#8088)

The CSS Working Group just discussed `[css-contain-3] Can we allow custom properties in dimensional container queries?`, and agreed to the following:

* `RESOLVED: Allow var references in container queries without particular type safety. Will check the type when a query is evaluated against a container`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> miriam: With container queries we are resolving against a specific container which is an element on the page. Which mean we resolve relative units. If we query >30em we know what an em is.<br>
&lt;dael> miriam: Similar with style queries we can resolve costom values in the query against the container<br>
&lt;dael> miriam: Have practice to resolve things that need an element. Can we take that and allow custom properties to be used in a dimensional query?<br>
&lt;dael> miriam: There would be 2 ways we could define it. Main problem is we need to resolve a type and make sure it's a number or length or whatever we need. Could either rely on @property which is a little manual or could say define types expected for each dimansional feature<br>
&lt;dael> miriam: anders lays that out in a comment. inline-size is a length etc.<br>
&lt;dael> miriam: I think this woulc be a great thing. moving toward custom MQ. Slightly different, but a lot of same impact<br>
&lt;dael> TabAtkins: Definitely should do this and extremely good. I don't think need to be fancy what we get out the end. Don't need @property or do anything for types beyond what is there defining syntax. All need to do is define what it means after substitution if it violates the query. Get an unknown or a false<br>
&lt;fantasai> +1<br>
&lt;dael> TabAtkins: Don't need to worry about types and more than we alreayd do. inline-size disallows red<br>
&lt;dael> miriam: I like that answer<br>
&lt;dael> astearns: Other opinions?<br>
&lt;dael> heycam: What happens if...you might have said it but what if variable isn't defined at computed value time<br>
&lt;dael> TabAtkins: It's guar invalid<br>
&lt;dael> astearns: Prop: Allow var references in container queries without particular type safety. Will check the type when a query is evaluated against a container<br>
&lt;dael> astearns: Concerns?<br>
&lt;dael> astearns: Objections?<br>
&lt;dael> RESOLVED: Allow var references in container queries without particular type safety. Will check the type when a query is evaluated against a container<br>
&lt;dael> astearns: This does seem cool<br>
</details>


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


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

Received on Thursday, 5 January 2023 00:38:43 UTC