- From: Bramus via GitHub <sysbot+gh@w3.org>
- Date: Sun, 06 Oct 2024 19:50:48 +0000
- To: public-css-archive@w3.org
Not a big fan of it, but also not against it. --- I recently read up on [`first-valid()`](https://www.w3.org/TR/css-values-5/#first-valid) – which I didn’t know existed up until then. This give me a new idea _(which would alter the resolution from #8320)_: what if there was a function that allowed authors to list certain options and it returns the first non empty one? - `auto` = auto generate a name _(element identity)_. - `attr(id "<ident>")` = use id attribute - `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)` -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10995#issuecomment-2395562334 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 6 October 2024 19:50:49 UTC