Skip to content

[*][editorial] Unquote delimiters in value definitions - #11807

Merged
tabatkins merged 1 commit into
w3c:mainfrom
cdoublev:unquoted-delimiters
Mar 4, 2025
Merged

[*][editorial] Unquote delimiters in value definitions#11807
tabatkins merged 1 commit into
w3c:mainfrom
cdoublev:unquoted-delimiters

Conversation

@cdoublev

@cdoublev cdoublev commented Mar 2, 2025

Copy link
Copy Markdown
Collaborator

This PR removes the quotes around : / ) in value definitions.

Since eab6ac4, the related text of CSS V&U is:

  1. Delimiters, which represent their corresponding tokens. Slashes (/), commas (,), colons (:), semicolons (;), parentheses (( and )), and braces ({ and }) are written literally. Other delimiters must be written enclosed in single quotes (such as '+').

In this paragraph, whether they can be or they must be written literally is ambiguous.

None are tokenized as <delim-token> but as their own token, except /. They are delimiters, I think, and I guess these tokens only exist for convenience. But a "dumb" CSS value definition parser may interpret ')' as a <delim-token> whose value is ), whereas such token cannot exist.

This change would also be appreciated to have simpler implementation of such parsers. MediaQueries and Selectors both define a "general" functional notation: the former with ), the second with ')'.

CSS Values 4 requires to write / , : ; ( ) { } literally in value definitions.
@svgeesus
svgeesus requested review from fantasai and tabatkins March 4, 2025 02:38
@svgeesus svgeesus added the meta label Mar 4, 2025
@tabatkins
tabatkins merged commit 4d997d9 into w3c:main Mar 4, 2025
@cdoublev
cdoublev deleted the unquoted-delimiters branch March 4, 2025 19:40
cdoublev added a commit to cdoublev/css that referenced this pull request Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants