- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 21 Aug 2024 15:23:50 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-view-transitions-2] Should view-transition-group contain or <ident> take precedence`, and agreed to the following: * `RESOLVED: idents take precedence over contain in view-transition-group` <details><summary>The full IRC log of that discussion</summary> <bramus> vmpstr: regarding nesting with v-t-group<br> <bramus> … it takes keywords or ident<br> <bramus> … contain says that all of the v-t descendants are nested<br> <bramus> … ident says same thing but also element itself will nest on the thing with that ident<br> <bramus> … q is what happens if an element has a v-t-group with a custom ident and also has an ancestor set to contain – where do we nest this? the contain one or the one with the ident?<br> <khush> +1<br> <bramus> … noam and I agree that ident should probably win<br> <bramus> … seems more specific<br> <emilio> q+<br> <bramus> astearns: is this more of an edge case?<br> <bramus> vmpstr: without having any demos yet this is hard to say<br> <bramus> … even if its edge case we need to figure this out<br> <bramus> … I imagine contain being more of a grab-all thing<br> <bramus> … whereas ident is about specific effect<br> <bramus> bramus: example could be where you move element from one container to another<br> <bramus> vmpstr: each of the container would say contain, and the one that you move would be a common ancestor to pop it out<br> <bramus> … yeah, thats one example where the proposed behavior is the correct one<br> <noamr> Exactly, it's a *default* rather than something that behaves like a stacking context<br> <astearns> ack emilio<br> <bramus> emilio: agree that this seems desirable<br> <bramus> … is there any use case for actually enforcing the containment?<br> <bramus> … do we need a strong contain?<br> <bramus> … I dont think so?<br> <ydaniv> q+<br> <bramus> astearns: somewhere along the line of adding a new keyword such as contain-idents?<br> <fantasai> "contain-all"<br> <noamr> q+<br> <bramus> emilio: yeah, like sth to contain everything<br> <bramus> … but needs a use case<br> <bramus> noamr: <missed><br> <astearns> ack fantasai<br> <bramus> fantasai: first thought that ?? would contain everything but more useful if it didnt<br> <astearns> s/??/the contain keyword/<br> <bramus> … concern about the keywords with other features<br> <astearns> ack ydaniv<br> <noamr> q-<br> <bramus> … such as timeline-scope and ?? which dont use that so it seems fine<br> <fantasai> s/the keywords/the keywords being consistent/<br> <vmpstr> s/??/anchor-scope/<br> <fantasai> s/use that/use 'contain'/<br> <bramus> ydaniv: nearest and ident go on the child and they point to the group … but contain is other way around, right? its the parent that should say that.<br> <bramus> … seems like different usecases wrapped into the same property<br> <bramus> vmpstr: q is if parent has contain and child points to above that parent: what is the behavior?<br> <bramus> … proposal is that ident wins<br> <bramus> ydaniv: also +1 on ident wins<br> <bramus> astearns: i might be more sceptical …need use cases and actual uses<br> <noamr> q+<br> <bramus> … can see author wanting to scope ident to partciular container but that might be much more complicated that anything actually wanted to do<br> <astearns> ack noamr<br> <bramus> noamr: use case is that you have a clipping border-radius container that gets v-t-g:contain so that everything gets contained<br> <bramus> … but a chat widget inside is FixedPos then the container should not contain the chat widget<br> <khush> here is an example: https://github.com/w3c/csswg-drafts/issues/10334#issuecomment-2111871610<br> <bramus> … its about default ?? semantic instead of stacking contect semantic<br> <fantasai> re-reading the description of the property at https://github.com/w3c/csswg-drafts/issues/10334#issuecomment-2165649094 I think I agree that contain should only capture 'normal' elements<br> <khush> q+<br> <bramus> vmpstr: opposite case of wher eyou want to contain idents is where you remove it … opposite behavior would be author fighting with themselves<br> <bramus> … whereas this has usecases<br> <astearns> ack khush<br> <bramus> khush: i shared a link to the second comment on the issue which has this use case<br> <bramus> … so the first example we got from a dev wanted this behavior<br> <bramus> … added this property to give authors an easy way to contain all except 1 child<br> <astearns> ack fantasai<br> <bramus> fantasai: looking back over the original description I agree this is the result of the contain ?? being less precise than we wanted to<br> <fantasai> -> https://github.com/w3c/csswg-drafts/issues/10334<br> <bramus> … when you give sth a group identity its “gorup me under that thing“ but also applies containment to the children but only the ones with the default behavior<br> <bramus> … its consistent here. both apply containment<br> <bramus> … ?? specific ancestor to be contained under<br> <bramus> PROPOSED RESOLUTION: idents take precedence over contain in view-transition-group<br> <bramus> astearns: objections or concerns or questions?<br> <fantasai> just as they do for <ident> values<br> <bramus> RESOLVED: idents take precedence over contain in view-transition-group<br> <fantasai> (which also apply containment, but only to 'normal' elements)<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10639#issuecomment-2302366592 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 21 August 2024 15:23:51 UTC