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 using a selector like
body:has(.green) .conditional-red p { color: red; }
The selector is purged even though the styles clearly would apply to an element.
I recreated the issue in a minimal setup in the attached zip file.
Basically it is enough to just write a <any1>:has(<any2>) <any3> <any4> selector and provide an html like
<any1>:has(<any2>) <any3> <any4>
<any1> <any2></any2> <any3> <any4></any4> </any3> </any1>
The selector should not be purged when the styles actually are applied
macOS 14.2.1 (23C71) purgecss: 5.0.0
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When using a selector like
The selector is purged even though the styles clearly would apply to an element.
To Reproduce
I recreated the issue in a minimal setup in the attached zip file.
Basically it is enough to just write a
<any1>:has(<any2>) <any3> <any4>
selector and provide an html likeExpected Behavior
The selector should not be purged when the styles actually are applied
Environment
macOS 14.2.1 (23C71)
purgecss: 5.0.0
Add any other context about the problem here
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: