Skip to content

[css-cascade-7] Should rule identifiers allow quoted strings, or simply <ident>? #12005

@KurtCattiSchmidt

Description

@KurtCattiSchmidt
@sheet foo {}
@sheet "foo" {}

The former feels natural, but this issue is whether we should also support the latter.
 
For precedent, @layer only supports the former:

<layer-name> = <ident> [ '.' <ident> ]*

https://www.w3.org/TR/css-cascade-5/#layer-names

...while @keyframes allows both (as equivalent values):

<keyframes-name> = <custom-ident> | <string>

https://drafts.csswg.org/css-animations-1/#keyframes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    FTF agenda items

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions