Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-properties-values-api] Allow dashed idents in syntax strings #1137

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andruud
Copy link
Member

@andruud andruud commented Jan 2, 2025

Currently, grammars like syntax:"auto | --mything" are not allowed, since we don't handle HYPHEN-MINUS during "consume a syntax component". This was likely an oversight when it was initially written.

Note: we might want to just remove the algorithms that parse syntax components from a string, and instead tokenize/parse using the new <syntax> production. If we do, that would also make dashed idents allowed unless we explicitly block it.

Currently, grammars like syntax:"auto | --mything" are not allowed,
since we don't handle HYPHEN-MINUS during "consume a syntax component".
This was likely an oversight when it was initially written.

Note: we might want to just remove the algorithms that parse
syntax components from a string, and instead tokenize/parse using
the new `<syntax>` production. If we do, that would *also* make
dashed idents allowed unless we explicitly block it.
@andruud
Copy link
Member Author

andruud commented Jan 2, 2025

cc @kizu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant