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

About unused CSS and hidden Elements #1579

Open
BloodlineL opened this issue Sep 28, 2024 · 1 comment
Open

About unused CSS and hidden Elements #1579

BloodlineL opened this issue Sep 28, 2024 · 1 comment

Comments

@BloodlineL
Copy link

When the selector contains :has or :not, even if no elements are matched, it will not be removed.
Another question is why some hidden elements are nested instead of just saving the top level.
2024-09-28_22-16-15

@gildas-lormeau
Copy link
Owner

gildas-lormeau commented Oct 3, 2024

Thank you. In fact, for this option, the aim is not really for SingleFile to be 100% efficient but to remove most of hidden elements without breaking the layout. I agree that optimizations would be desirable though.

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

No branches or pull requests

2 participants