[csswg-drafts] [css-values-5] Can ident() bypass dashed-ident requirements? (#12206)

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values-5] Can ident() bypass dashed-ident requirements? ==
Some properties require `<dashed-idents>`, for example `scroll-timeline-name`. So e.g. `scroll-timeline-name:nondash` would be invalid at parse-time. However, with the `ident()` function, we'll no longer be able to reject those values parse-time: `scroll-timeline-name:ident(var(--maybe-dashes-maybe-not) "mytimeline")`.

I guess we have two choices:

 - Allow `ident()` to bypass the dashed requirement, making `scroll-timeline-name:ident(timeline)` actually a define a timeline named `timeline`. (In order for the timeline to be reachable, the name would have to be "escaped" with `ident()` on the `animation-timeline` side as well).
 - Enforce the dashed requirement computed value time instead.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12206 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 16 May 2025 13:11:14 UTC