- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Mon, 07 Oct 2024 09:23:03 +0000
- To: public-css-archive@w3.org
> * `first-non-empty(attr(id "<ident>"), auto)` = try getting id attribute first. if there is none, fall back to `auto` behavior. > > That would prevent a lot of confusion on the author side, as `auto` here now means “auto-generate a v-t-name”. > > Otoh it would require a little more typing if they want the fallback behavior, but it would also allow authors to add more options to the fallback: e.g. `first-non-empty(attr(id "<ident>"), attr(data-name "<ident>"), auto)` To me this feels too verbose for a feature that's supposed to be a DX convenience... I think once `attr` is there we wouldn't need this. Though `first-non-empty might still be a valuable proposal regardless of auto view-transition-names. I think the direction the `auto` resolution went with is is to have some keywords that have reasonable defaults and to leave `attr` etc. for the general-purpose more complex cases. -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10995#issuecomment-2396386755 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 7 October 2024 09:23:04 UTC