We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When transpiling the following css using --supported:nesting=false the child combinator within the :has vanishes
--supported:nesting=false
:has
.a :has(> .c) { .b & { background-color: green; } }
result:
.b :is(.a :has(.c)) { background-color: green; }
expected result:
.b :is(.a :has(>.c)) { background-color: green; }
esbuild playground: https://esbuild.github.io/try/#YgAwLjIzLjAALS1zdXBwb3J0ZWQ6bmVzdGluZz1mYWxzZQBlAGVudHJ5LmNzcwAuYSA6aGFzKD4gLmMpIHsKICAuYiAmIHsKICAgIGJhY2tncm91bmQtY29sb3I6IGdyZWVuOwogIH0KfQ
see also: vuejs/core#11613
The text was updated successfully, but these errors were encountered:
I get a similar issue with this: https://esbuild.github.io/try/#YgAwLjI0LjIALS1zdXBwb3J0ZWQ6bmVzdGluZz1mYWxzZQBlAGVudHJ5LmNzcwAuYSB7CiAgOmhhcyg+JikgewogICAgYmFja2dyb3VuZDpyZWQ7CiAgfQp9
Input:
.a { :has(&) { background:red; } }
Give the correct output:
:has(.a) { background:red; }
But this input:
.a { :has(>&) { background:red; } }
Give the incorrect output:
.a :has(>.a) { background:red; }
Sorry, something went wrong.
53a2fc4
fix additional comment on #3877 about :has(> &)
:has(> &)
f4cc689
No branches or pull requests
When transpiling the following css using
--supported:nesting=false
the child combinator within the:has
vanishesresult:
expected result:
esbuild playground: https://esbuild.github.io/try/#YgAwLjIzLjAALS1zdXBwb3J0ZWQ6bmVzdGluZz1mYWxzZQBlAGVudHJ5LmNzcwAuYSA6aGFzKD4gLmMpIHsKICAuYiAmIHsKICAgIGJhY2tncm91bmQtY29sb3I6IGdyZWVuOwogIH0KfQ
see also: vuejs/core#11613
The text was updated successfully, but these errors were encountered: