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

Minifying Css nesting :where(& > .bar) generates invalid CSS #4005

Open
sapphi-red opened this issue Dec 16, 2024 · 1 comment
Open

Minifying Css nesting :where(& > .bar) generates invalid CSS #4005

sapphi-red opened this issue Dec 16, 2024 · 1 comment
Labels

Comments

@sapphi-red
Copy link
Contributor

sapphi-red commented Dec 16, 2024

For the following input,

.foo {
  :where(& > .bar) {
    color: red;
  }
}

esbuild outputs

.foo{:where(>.bar){color:red}}

(esbuild try).

But this output is invalid because :where does not allow relative selectors.

Original issue: vitejs/vite#18974

reference

@evanw evanw added the css label Dec 20, 2024
@engyii
Copy link

engyii commented Jan 13, 2025

FI, Important issue for the next version of tailwind, tailwind 4 when built with vite down the stream.

Link to vite issue
Link to tailwind issue

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

No branches or pull requests

3 participants