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

[Bug] The stylesheet rules is wrong when css includes :not() #28

Open
lwenn opened this issue Aug 29, 2022 · 0 comments · May be fixed by #29
Open

[Bug] The stylesheet rules is wrong when css includes :not() #28

lwenn opened this issue Aug 29, 2022 · 0 comments · May be fixed by #29

Comments

@lwenn
Copy link

lwenn commented Aug 29, 2022

Run this code:

var mensch = require('mensch');
var parsed = mensch.parse('.my-class:not(.class1, .class2) {}', {
  position: true,
  comments: true,
});

The parsed.stylesheet.rules will be an array with two items: ['.my-class:not(.class1', '.class)'], this rules are wrong.
It should not be splited by , simply.

@lwenn lwenn linked a pull request Aug 29, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant