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-syntax-3] Do not consume ; to consume a declaration #8755

Closed
cdoublev opened this issue Apr 24, 2023 · 1 comment
Closed

[css-syntax-3] Do not consume ; to consume a declaration #8755

cdoublev opened this issue Apr 24, 2023 · 1 comment

Comments

@cdoublev
Copy link
Collaborator

; is consumed as part of the declaration value (eg. in @supports (color: green;) {}) whereas it cannot be matched by <declaration> (railroad diagram).

I suggest this change in step 5 of consume a declaration:

- * As long as the next input token is anything other than an <EOF-token>, 
+ * As long as the next input token is anything other than an <EOF-token> or <semicolon-token>, 
    consume a component value and append it to decl’s value.
@cdoublev
Copy link
Collaborator Author

Fixed in 6ab5888.

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

No branches or pull requests

1 participant