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 nesting && is lowered incorrectly #3997

Open
sapphi-red opened this issue Dec 2, 2024 · 0 comments
Open

CSS nesting && is lowered incorrectly #3997

sapphi-red opened this issue Dec 2, 2024 · 0 comments

Comments

@sapphi-red
Copy link
Contributor

According to the spec, for the following input,

.foo {
  color: blue;
  && { padding: 2ch; }
}

the lower result should be

.foo { color: blue; }
.foo.foo { padding: 2ch; }

But esbuild outputs,

.foo {
  color: blue;
}
.foo {
  padding: 2ch;
}

which has a different specificity (esbuild try).

Original issue: vitejs/vite#18843

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