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 parser ignoring comments within rulesets #107

Open
lucasgrinspan opened this issue Feb 2, 2023 · 1 comment
Open

CSS parser ignoring comments within rulesets #107

lucasgrinspan opened this issue Feb 2, 2023 · 1 comment

Comments

@lucasgrinspan
Copy link

Hello there, I've noticed some interesting behavior with the CSS parser. It doesn't seem to return comment grammar for comments in rulesets. It works fine for comments defined outside of rulesets however. As an example:

/* test */ 
h1 {
    color: red; 
    /* test */ 
}

Iterating over the above stylesheet leads to only one Comment instead of the expected two. Is this a bug in the parser?
Reproduction Link

@tdewolff
Copy link
Owner

tdewolff commented Feb 4, 2023 via email

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

No branches or pull requests

2 participants