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
:hover
A :hover in a nested rule is reported as useless.
package.json
{ "name": "testcase", "version": "1.0.0", "type": "module", "dependencies": { "purgecss": "5.0.0" } }
index.html
<!doctype html> <html> <head> <meta charset="utf-8" /> <title>Test case</title> <link href="style.css" rel="stylesheet" /> </head> <body> <a href="https://github.com/">GitHub</a> </body> </html>
style.css
a:hover { background-color: green; } a { &:hover { color: red; } }
npm install
npx purgecss --css style.css --content index.html --rejected
[{ "css": "a:hover {\n background-color: green;\n}\n", "file": "style.css", "rejected": ["&:hover"] }]
[{ "css": "a:hover {\n background-color: green;\n}\n\na {\n &:hover {\n color: red;\n }\n}\n", "file": "style.css", "rejected": [] }]
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
A
:hover
in a nested rule is reported as useless.To Reproduce
package.json
index.html
style.css
npm install
npx purgecss --css style.css --content index.html --rejected
Expected Behavior
Environment
Add any other context about the problem here
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: