-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix support of CSS nesting (Non-transparent backgrounds on some sites were not saved correctly) #1662
Comments
Thank you for the detailed report. I confirm I was able to reproduce the issue. This is due to a technical limitation when trying to optimize the stylesheets. I should be able to fix it though. Meanwhile, you can circumvent the issue by disabling the option "Stylesheets > remove unused styles". |
Thanks for your reply. I unchecked that option, but the issue remains:
Screenshots: |
@tglsf Thank you for the feedback. I confirm the issue. I did not notice the missing white background. For the record, this bug is related to this feature which is quite recent: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_selectors/Selectors_and_combinators#creating_complex_selectors_with_css_nesting |
For the record, this issue is related to csstree/csstree#268. It can be reproduced by running the code below which returns csstree.generate(csstree.parse(`
body {
> section#release {
.release-box { }
}
}
`)); |
Describe the bug
Non-transparent backgrounds on some sites were not saved correctly. The screenshot shows the top bar and semi-transparent backgrounds missing, despite enabling hidden elements and scripts in the configuration.
To Reproduce
Steps to reproduce the behavior:
Screenshots


The top is the original website, and the bottom is the saved page (as seen in the URL bar).
Environment
The text was updated successfully, but these errors were encountered: