w3c / w3c/csswg-drafts

[css-values-5] Are CSS wide keywords allowed in `<syntax-single-component>`?

Open
#13,614 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-values-5
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

The spec defines <syntax-single-component> = '<' <syntax-type-name> '>' | <ident> but Chrome (the only implementer) disallows CSS wide keywords and the default keyword (i.e. it only allows <custom-ident> rather than <ident>).

By allowing only <custom-ident> it would also align better with the syntax described by the css-properties-values-api spec (which I believe this intends to replace) as that defines it's equivalent "syntax component name" as A sequence of code points which is either a data type name, or a sequence that can produce a <custom-ident>. (i.e. '<' <syntax-type-name> '>' | <custom-ident>)

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 css-values-5 definition of , the linked CSS Properties and Values API syntax component name, and Chromium's css_syntax_definition.cc implementation. Determine whether the specification should use or ; done means the intended keyword behavior is clearly resolved in the spec.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.