- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 05 Jan 2023 01:00:18 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-contain-3] Reference named containers for cq units`. <details><summary>The full IRC log of that discussion</summary> <dael> miriam: The request is with ontainer quereis want to query a specific container. Can do with full syntax but not w.ith units. Units give nearest container with right dimenions. It's a good default<br> <dael> miriam: Nice if you can get the width, height, etc from a specific container<br> <dael> miriam: Prop is starting ith cq functions that match unitis cqw, cqh, etc. Function takes 1 arg which is name of container. Returns the value of @unit. You can use that in calc, multiply by something, and query a specific container.<br> <dael> miriam: Bonus request is do we allow function appended to a value is same way as with custom units. Nice to do with functions. Functions are powerfut even without<br> <dael> TabAtkins: New functional unit is brand new syntax. Not a problem, but just for conservitiveness I think we want to lean existing pattern. I would think takes cq-length and contextually interprets based on cintainer name as other argument<br> <dael> miriam: Suggestion a function that's both multiplier and name?<br> <TabAtkins> container-reference(10cqi, card)<br> <dael> TabAtkins: Same as nmn (sp?)<br> <dael> TabAtkins: THis function ^ Relative to name from second argument<br> <ntim> q+<br> <dael> miriam: Could work. As soon as looking at container-reference with 2 arg does ti have broader uses? container-reference(2em, card) I would use<br> <dael> TabAtkins: We could define tightly and extend. If we go for more than 1 dimension, aka a calc of stuff, I suppose works. It's more work impl-wise<br> <dael> fantasai: All of this is longer to type than calc, right? calc with a bunch of functions would be easier<br> <miriam> calc(10 * cqw(card))<br> <miriam> container-reference(10cqi, card)<br> <dael> TabAtkins: What I desc is shorter than doing same thing with calc. If it's conainer reference that takes name and returns the unit length that's longer<br> <astearns> ack ntim<br> <fantasai> how is that strictly longer<br> <dael> ntim: Would it allow querying the units for containers outside of the container chain?<br> <dael> ntim: And any concerns if it is allowed?<br> <dael> miriam: The way I was thinking of it is resolves same as container queries so has to be ancestor<br> <dael> astearns: Nearest ancestor whose name matches<br> <dael> astearns: One minute left. Hearing this is good to have but a bit of quibbling over syntax.<br> <dael> miriam: Can take it back to the issue<br> <TabAtkins> hm, i guess functions with the name of the cq* unit lets you collapse things down to a pretty short thing.<br> <dael> astearns: Yep. Let's take it back to the issue and go over syntax, but let's try and take this up. Seems like it will be very useful<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7858#issuecomment-1371607438 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 01:00:20 UTC