Save selection keeps not selected html elements as display: none
Is your feature request related to a problem? Please describe.
When I use "Save selection" I see that the saved html file have many html elements with style="display:none !important". I have "remove hidden contents" option enabled. I suppose it's an intended behavior.
Describe the solution you'd like
It would be nice to have an option to save as small html file as possible without other html elements around selected html tag. If it's possible it will be great to avoid saving unused css as well.
Describe alternatives you've considered (optional)
Additional context (optional)
It's indeed the intended behavior in order to make sure the stylesheets will continue to work. SingleFile would have to rewrite the CSS selectors in order to make sure the feature you're suggesting would work reliably.
As a start it would be nice to remove all siblings under the html tree and leave only one branch to the selected element. This shouldn't require any stylesheet updates.