Skip to content

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

Open
@andruud

Description

@andruud

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions