evanw/esbuild

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

Opened this issue · 0 comments

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