w3c / w3c/csswg-drafts

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

Open
#12,005 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-cascade-7
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

@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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the linked CSS Cascade 5 and CSS Animations specifications, then compare the existing and grammars with the proposed @sheet forms. This is done when the quoted-string behavior has a clear resolution and the relevant specification text reflects that decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.