Re: [csswg-drafts] [css-contain-3] Spec syntax for size queries (#6870)

The CSS Working Group just discussed `CSS Containment L3`.

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: CSS Containment L3<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/6870<br>
&lt;fantasai> una: Written similar to MQ that could write width/min-width to query for a size<br>
&lt;fantasai> una: but this was removed from the spec<br>
&lt;fantasai> una: requires size() function<br>
&lt;fantasai> una: my suggestion is to keep the bare parens syntax<br>
&lt;fantasai> una: as well as size() function<br>
&lt;fantasai> una: easier for developers because similar to MQ<br>
&lt;fantasai> una: think devs would be confused if it doesn't work like MQ<br>
&lt;fantasai> miriam: So anything in parens that's not a unction, would be a size query<br>
&lt;fantasai> miriam: I'm OK with that, we went with consistency in the first draft<br>
&lt;fantasai> fantasai: I don't think we should have two syntaxes<br>
&lt;fantasai> fantasai: Either have a function, or don't have a function<br>
&lt;fantasai> una: I prefer not using the functional notation<br>
&lt;fantasai> una: I think it's clear enough without<br>
&lt;fantasai> miriam: The function is there to be consistent with / distinguish from style queries<br>
&lt;fantasai> miriam: both can be querying 'width' or 'min-width'<br>
&lt;fantasai> una: If someone has mental model of familiar tech like MQ, will likely try that syntax first for container query<br>
&lt;fantasai> una: querying size will be a popular technique<br>
&lt;florian_irc> s/'width' or 'min-width'/'min-width' as a size or 'min-width' as a property/<br>
&lt;iank_> what does it look like when you combine size &amp; state/etc?<br>
&lt;fantasai> fantasai: anyone have an opinion?<br>
&lt;fantasai> jensimmons_: I agree with all three people<br>
&lt;fantasai> fantasai: but what does that mean?<br>
&lt;fantasai> jensimmons_: doesn't mean anything<br>
&lt;fantasai> Rossen_: Should discuss in issue maybe? Get a stronger opinion?<br>
&lt;fantasai> miriam: I'd like it if people put their opinions in the issue. Has been open, not many comments.<br>
&lt;fantasai> Rossen_: Ok, so pls add your opinions, and we'll come back to this next week<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6870#issuecomment-1011278029 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:20:35 UTC