Skip to content

[css-values-5] ident() should be validated at parse time #12668

@cdoublev

Description

@cdoublev

Follow-up on #11663 (comment).

As currently specified:

  1. ident(1) is valid but produces an invalid <ident>
  2. ident(initial) is valid but produces an invalid <custom-ident>
  3. ident(custom) is valid but produces an invalid <dashed-ident>
  4. ident(none) is valid but produces an invalid <keyframes-name>

The result of ident(1) could be escaped but this does not work for 2-4, so it would be more consistent to always validate the first argument (at parse time).

I presume that 3-4 and similar cases should also be validated at parse time. calc(-1) is a valid <number [0,∞]> and is clamped at computed value time. I do not think anything similar can be done for ident().

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions