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

CssSyntaxError: Unclosed bracket #2774

Open
merndev-agile opened this issue Mar 10, 2023 · 0 comments
Open

CssSyntaxError: Unclosed bracket #2774

merndev-agile opened this issue Mar 10, 2023 · 0 comments

Comments

@merndev-agile
Copy link

merndev-agile commented Mar 10, 2023

To reproduce:
The stylus compiler produces wrong css for the kind of css written below that has a combination of multiple, multi-argument :not selectors.
This is reproducible on the stylus playground https://stylus-lang.com/try.html with the following code

.foo:not(.a, .b),
.bar:not(.a, .b) {
	color: red;
}

Current behavior:
The generated output is as follows: The closing bracket ) for the second :not is missing.

.foo:not(.a,
.b),
.bar:not(.a {
  color: #f00;
}

Expected behavior:
The closing bracket ) for the second :not is missing. Expected output should be like below

.foo:not(.a,.b),
.bar:not(.a ,.b){
  color: #f00;
}

Environment information:

stylus version: 0.59.0
nodejs version: 16.16.0

WhatsApp Image 2023-03-10 at 20 32 19

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

1 participant