- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Oct 2024 15:49:23 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-view-transitions-2] How are auto-generated `view-transition-name`s exposed in JS APIs``, and agreed to the following: * ``ACTION: Open new issue about whether `auto` exposes the ID from the ID attribute as a view-transition-name for pseudo-element matching`` * ``RESOLVED: [Pending async confirmation] we will use `match-element` in the Animations API when element identity is used`` <details><summary>The full IRC log of that discussion</summary> <bramus> noamr: how do autogenerated appear in things like getAnimations?<br> <khush> q+<br> <bramus> … what would these auto-generated ones look like? Aavailble as strings? Or give them a name of `match-element` or `*` or not show them at all?<br> <fantasai> ACTION: Open new issue about whether `auto` exposes the ID from the ID attribute as a view-transition-name for pseudo-element matching<br> <bramus> bramus: and devtools?<br> <astearns> ack khush<br> <bramus> noamr: no, not included<br> <bramus> khush: two options<br> <bramus> … if we decied that id based names ar ehidden from css then it makes sense to hide everything from auto<br> <bramus> … or if name came from id attribute then do expose it but dont expose the identity ones (and expose those as `match-element`)<br> <bramus> q+<br> <bramus> astearns: the ids that auto uses could be made opaque but if the author uses the attr() fn then they would be exposed?<br> <bramus> khush: thats the complication with hiding ids<br> <bramus> … if you use attr() then you have all those complications of where you get the strings from<br> <astearns> ack bramus<br> <bramus> … can punt on this until we decide how to namespace ids<br> <noamr> q+<br> <fantasai> bramus: if value derived from ID attribute and expose it, if you have an element with an ID on one page and a different one on a different page with a view-transition-name of hero, then one transitions to the other<br> <fantasai> bramus: would be useful to expose that name<br> <fantasai> bramus: if we fall back to match-element strategy, then show that as match-element<br> <fantasai> bramus: because authors can't target those elements directly<br> <fantasai> bramus: by having match-element there, clearly can't target<br> <bramus> fantasai: q about whether id on one page would match a v-t-n on other is part of the namespacing discussion<br> <bramus> … dont have an opionion on direction<br> <bramus> … if that worked, then we should make pseudos match that<br> <bramus> … but q is then should that work in the first place?<br> <bramus> … do we want to expose the name derived from an id in the first place? no opinion right now.<br> <bramus> … obviously should not expose autogenerated names<br> <astearns> ack noamr<br> <bramus> noamr: strong opinion about keeping things simple… if generated by id its just that name<br> <bramus> … already doing complicated things that look different<br> <bramus> … if the v-t-name comes from an id, then that should be the v-t-n<br> <bramus> … if author dont want that, they should do other things<br> <bramus> … lets keep things flat<br> <khush> q+<br> <bramus> … regardless we can resolve to use the name `match-element` in `getAnimations`<br> <astearns> ack khush<br> <bramus> khush: since we are going here … my alignment is wit noam on this. keep it simpel and treat them as names<br> <bramus> … dont have author feedback on this though<br> <bramus> … not a super strong opinion<br> <bramus> … if this pattern is adopted like anchor-name and there is no matching concept, do we want to have this namespacing concept across css props then?<br> <bramus> … then VT wont have this own special thing<br> <bramus> q+<br> <bramus> … concept would make sense across CSS<br> <bramus> fantasai: none of the others have a way of pulling element id<br> <bramus> khush: but can imagine anchor-pos doing the same over time<br> <astearns> ack bramus<br> <noamr> I like that auto === id ? attr(id) : match-element<br> <bramus> bramus: missed<br> <bramus> astearns: but flatness isnt part of the issue<br> <bramus> khush: lets thing about that a bit more<br> <bramus> s/khush/noamr<br> <bramus> noamr: lets resolve on exposing them as `match-element`<br> <bramus> astearns: is ther ea conclict there?<br> <bramus> noamr: its just in getAnimations<br> <bramus> astearns: which is wrapped in a pseudo<br> <bramus> khush: compat risk for users that have used `match-element`<br> <bramus> bramus: dont think anyone has used that yet<br> <bramus> khush: so if you use auto and we use the id attr then we expose the id attr as string, and if we use identity then we expose match-element<br> <bramus> noamr: and tbd if these id-based names are namespaced or not<br> <bramus> astearns: should open an issue that<br> <bramus> khush: can do that<br> <bramus> PROPOSED RESOLUTION: we will use `match-element` in the Animations API when element identity is used<br> <bramus> astearns: objections?<br> <bramus> (silence)<br> <bramus> RESOLVED: [Pending async confirmation] we will use `match-element` in the Animations API when element identity is used<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10978#issuecomment-2447608159 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 30 October 2024 15:49:24 UTC